mpeg2: fix decoding of sequence_end().
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Wed, 30 Jan 2013 17:54:13 +0000 (18:54 +0100)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Wed, 30 Jan 2013 18:19:47 +0000 (19:19 +0100)
There shall be only one place to call decode_current_picture(), and this
is in the end_frame() hook. The EOS unit is processed after end_frame()
so this means we cannot have a valid picture to decode/output at this
point.

gst-libs/gst/vaapi/gstvaapidecoder_mpeg2.c

index 88a48405a4c3828ad04fbf1aaee9b2bb16c70620..540e5ee2dc4bec2fd1fbfe170ab019a86fda3050 100644 (file)
@@ -801,11 +801,6 @@ static GstVaapiDecoderStatus
 decode_sequence_end(GstVaapiDecoderMpeg2 *decoder)
 {
     GstVaapiDecoderMpeg2Private * const priv = decoder->priv;
-    GstVaapiDecoderStatus status;
-
-    status = decode_current_picture(decoder);
-    if (status != GST_VAAPI_DECODER_STATUS_SUCCESS)
-        return status;
 
     gst_vaapi_dpb_flush(priv->dpb);
     return GST_VAAPI_DECODER_STATUS_SUCCESS;