From 924795c85c319ea1accf00ee97ac14aeecaf375e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 24 Feb 2016 17:07:17 +0200 Subject: 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 --- sys/applemedia/vtdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys') 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 -- cgit v1.2.1