h264: flush DPB when the end of the sequence is reached.

This commit is contained in:
Gwenole Beauchesne 2012-01-27 16:08:03 +01:00
parent e52ca4a2c8
commit d656b958a3

View file

@ -738,6 +738,7 @@ decode_sequence_end(GstVaapiDecoderH264 *decoder)
if (priv->current_picture && !decode_current_picture(decoder))
return GST_VAAPI_DECODER_STATUS_ERROR_UNKNOWN;
dpb_flush(decoder);
return GST_VAAPI_DECODER_STATUS_END_OF_STREAM;
}