mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
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:
parent
1ea2eabd8c
commit
16331c0b9e
1 changed files with 0 additions and 4 deletions
|
@ -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))
|
||||||
|
|
Loading…
Reference in a new issue