mpeg2: fix return value for "no-data" conditions.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Tue, 9 Oct 2012 13:01:38 +0000 (15:01 +0200)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Tue, 9 Oct 2012 16:05:47 +0000 (18:05 +0200)
commit8f7d19f010a7a8a525fb7bb2c36c75f9ca4c94b6
tree8ae1b24475567d9f7a3789547a3a330aeb461da6
parent86981eea41485361a6c3f68815dc7004910942ec
mpeg2: fix return value for "no-data" conditions.

Fix return value when the second scan for start code fails. This means
there is not enough data to determine the full extents of the current
packet and the function shall return GST_VAAPI_DECODER_STATUS_ERROR_NO_DATA
in this case, instead of GST_VAAPI_DECODER_STATUS_SUCCESS.
gst-libs/gst/vaapi/gstvaapidecoder_mpeg2.c