From 46cb19404df451bf420403de0dc0c900ae5f5e82 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Mon, 30 Dec 2013 13:28:52 +0100 Subject: [PATCH] jpegparse: Remove unneeded call 'parse' is already provided by the parent variable --- gst/jpegformat/gstjpegparse.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/gst/jpegformat/gstjpegparse.c b/gst/jpegformat/gstjpegparse.c index 9983f32d50..a05f9b1209 100644 --- a/gst/jpegformat/gstjpegparse.c +++ b/gst/jpegformat/gstjpegparse.c @@ -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; }