jasperenc: remove unused 'mimetype' variable

As mimetype is not used, we don't need to fetch it and therefore neither need
the structure s.
This commit is contained in:
Stefan Kost 2011-05-19 18:45:25 +03:00
parent 1ea2eabd8c
commit 16331c0b9e

View file

@ -299,8 +299,6 @@ static gboolean
gst_jasper_enc_sink_setcaps (GstPad * pad, GstCaps * caps) gst_jasper_enc_sink_setcaps (GstPad * pad, GstCaps * caps)
{ {
GstJasperEnc *enc; GstJasperEnc *enc;
GstStructure *s;
const gchar *mimetype;
GstVideoFormat format; GstVideoFormat format;
gint width, height; gint width, height;
gint fps_num, fps_den; gint fps_num, fps_den;
@ -308,8 +306,6 @@ gst_jasper_enc_sink_setcaps (GstPad * pad, GstCaps * caps)
gint i; gint i;
enc = GST_JASPER_ENC (GST_PAD_PARENT (pad)); 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 */ /* get info from caps */
if (!gst_video_format_parse_caps (caps, &format, &width, &height)) if (!gst_video_format_parse_caps (caps, &format, &width, &height))