mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
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:
parent
5ea1a675ab
commit
da2493f731
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue