diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2016-02-24 17:07:17 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2016-02-25 11:38:07 +0200 |
commit | 924795c85c319ea1accf00ee97ac14aeecaf375e (patch) | |
tree | c9fbf54f6db6ccc128e5690a8465e052ddea9b5c /sys | |
parent | 2b63a88f26bdaa7bc9ade594f9f80e20f3b6afe2 (diff) | |
download | gstreamer-plugins-bad-924795c85c319ea1accf00ee97ac14aeecaf375e.tar.gz |
vtdec: Negotiate the decoder in set_format() already
Don't wait until later, we want to know here if the codec can be opened or not
for the requested format. This was removed (accidentially?) by
119e09eac315f79ac2cf45b4441ad1d932130614
Without this decodebin has no way to switch to a different decoder if this one
does not work.
https://bugzilla.gnome.org/show_bug.cgi?id=762613
Diffstat (limited to 'sys')
-rw-r--r-- | sys/applemedia/vtdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/applemedia/vtdec.c b/sys/applemedia/vtdec.c index 86df2ab56..82a656c5f 100644 --- a/sys/applemedia/vtdec.c +++ b/sys/applemedia/vtdec.c @@ -359,7 +359,7 @@ gst_vtdec_set_format (GstVideoDecoder * decoder, GstVideoCodecState * state) gst_video_codec_state_unref (vtdec->input_state); vtdec->input_state = gst_video_codec_state_ref (state); - return TRUE; + return gst_video_decoder_negotiate (decoder); } static gboolean |