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
  119e09eac3

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
This commit is contained in:
Sebastian Dröge 2016-02-24 17:07:17 +02:00
parent 2b63a88f26
commit 924795c85c

View file

@ -359,7 +359,7 @@ gst_vtdec_set_format (GstVideoDecoder * decoder, GstVideoCodecState * state)
gst_video_codec_state_unref (vtdec->input_state); gst_video_codec_state_unref (vtdec->input_state);
vtdec->input_state = gst_video_codec_state_ref (state); vtdec->input_state = gst_video_codec_state_ref (state);
return TRUE; return gst_video_decoder_negotiate (decoder);
} }
static gboolean static gboolean