From: Víctor Manuel Jáquez Leal Date: Mon, 16 Mar 2015 21:10:53 +0000 (+0200) Subject: vaapidecode: call the correct query function X-Git-Tag: 1.19.3~503^2~1859 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d8d2f00bd031ccce1eae80e0c38918eb25b768e3;p=platform%2Fupstream%2Fgstreamer.git vaapidecode: call the correct query function In commit 2f8c115 (vaapidecode: use the query virtual methods in 1.4) a bug was introduced: when calling the parent's query function of the src pad, the one of the sink pad is called instead. This patch fixes this issue. https://bugzilla.gnome.org/show_bug.cgi?id=746248 --- diff --git a/gst/vaapi/gstvaapidecode.c b/gst/vaapi/gstvaapidecode.c index a773428..164aae3 100644 --- a/gst/vaapi/gstvaapidecode.c +++ b/gst/vaapi/gstvaapidecode.c @@ -1060,7 +1060,7 @@ gst_vaapidecode_src_query (GstVideoDecoder * vdec, GstQuery * query) #else GstPad *pad = GST_VIDEO_DECODER_SRC_PAD (vdec); GstObject *parent = gst_pad_get_parent (pad); - ret = GST_PAD_QUERY_FUNCTION_CALL (plugin->sinkpad_query, pad, parent, + ret = GST_PAD_QUERY_FUNCTION_CALL (plugin->srcpad_query, pad, parent, query); if (parent) gst_object_unref (parent);