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
This commit is contained in:
Víctor Manuel Jáquez Leal 2015-03-16 23:10:53 +02:00 committed by Sreerenj Balachandran
parent ccccbf4b09
commit d8d2f00bd0

View file

@ -1060,7 +1060,7 @@ gst_vaapidecode_src_query (GstVideoDecoder * vdec, GstQuery * query)
#else #else
GstPad *pad = GST_VIDEO_DECODER_SRC_PAD (vdec); GstPad *pad = GST_VIDEO_DECODER_SRC_PAD (vdec);
GstObject *parent = gst_pad_get_parent (pad); 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); query);
if (parent) if (parent)
gst_object_unref (parent); gst_object_unref (parent);