decoder: update picture size from the bitstream.

Propagate the picture size from the bitstream to the GstVaapiDecoder,
and subsequent user who installed a signal on notify::caps. This fixes
decoding of TS streams when the demuxer failed to extract the required
information.
This commit is contained in:
Gwenole Beauchesne 2013-05-07 16:43:51 +02:00
parent 5ea1a675ab
commit da2493f731

View file

@ -911,6 +911,8 @@ gst_vaapi_decoder_ensure_context(
{
GstVaapiDecoderPrivate * const priv = decoder->priv;
gst_vaapi_decoder_set_picture_size(decoder, cip->width, cip->height);
if (priv->context) {
if (!gst_vaapi_context_reset_full(priv->context, cip))
return FALSE;