summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorStefan Kost <ensonic@users.sf.net>2011-05-19 18:45:25 +0300
committerStefan Kost <ensonic@users.sf.net>2011-05-19 18:48:01 +0300
commit16331c0b9ecfa2ba0121d4a1ab2ccea9e3572ab4 (patch)
tree00cd9d549cc49e62a86ecbc97803cd2573dc94c9 /ext
parent1ea2eabd8c35649c36a1701b972e8f21fcb88cba (diff)
jasperenc: remove unused 'mimetype' variable
As mimetype is not used, we don't need to fetch it and therefore neither need the structure s.
Diffstat (limited to 'ext')
-rw-r--r--ext/jp2k/gstjasperenc.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/ext/jp2k/gstjasperenc.c b/ext/jp2k/gstjasperenc.c
index 27073e22a..90fca5159 100644
--- a/ext/jp2k/gstjasperenc.c
+++ b/ext/jp2k/gstjasperenc.c
@@ -299,8 +299,6 @@ static gboolean
gst_jasper_enc_sink_setcaps (GstPad * pad, GstCaps * caps)
{
GstJasperEnc *enc;
- GstStructure *s;
- const gchar *mimetype;
GstVideoFormat format;
gint width, height;
gint fps_num, fps_den;
@@ -308,8 +306,6 @@ gst_jasper_enc_sink_setcaps (GstPad * pad, GstCaps * caps)
gint i;
enc = GST_JASPER_ENC (GST_PAD_PARENT (pad));
- s = gst_caps_get_structure (caps, 0);
- mimetype = gst_structure_get_name (s);
/* get info from caps */
if (!gst_video_format_parse_caps (caps, &format, &width, &height))