jpegparse: Remove unneeded call

'parse' is already provided by the parent variable
This commit is contained in:
Edward Hervey 2013-12-30 13:28:52 +01:00
parent bab7bca634
commit 46cb19404d

View file

@ -944,8 +944,6 @@ gst_jpeg_parse_sink_event (GstPad * pad, GstObject * parent, GstEvent * event)
GstJpegParse *parse = GST_JPEG_PARSE (parent);
gboolean res = TRUE;
parse = GST_JPEG_PARSE (gst_pad_get_parent (pad));
GST_DEBUG_OBJECT (parse, "event : %s", GST_EVENT_TYPE_NAME (event));
switch (GST_EVENT_TYPE (event)) {
@ -1002,7 +1000,6 @@ gst_jpeg_parse_sink_event (GstPad * pad, GstObject * parent, GstEvent * event)
break;
}
gst_object_unref (parse);
return res;
}