mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
decodebin3: actually check result of accept caps query
We were just checking if the query was handled, not its result. Also fix a leak as gst_pad_query() was not consuming the query. https://bugzilla.gnome.org/show_bug.cgi?id=768811
This commit is contained in:
parent
3273714e0a
commit
6c58f5ee2f
1 changed files with 2 additions and 2 deletions
|
@ -1740,8 +1740,8 @@ reconfigure_output_stream (DecodebinOutputStream * output,
|
|||
gboolean can_reuse_decoder;
|
||||
|
||||
if (needs_decoder) {
|
||||
GstQuery *q = gst_query_new_accept_caps (new_caps);
|
||||
can_reuse_decoder = gst_pad_query (output->decoder_sink, q);
|
||||
can_reuse_decoder =
|
||||
gst_pad_query_accept_caps (output->decoder_sink, new_caps);
|
||||
} else
|
||||
can_reuse_decoder = FALSE;
|
||||
|
||||
|
|
Loading…
Reference in a new issue