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>
Fri, 16 Nov 2012 15:49:15 +0000 (16:49 +0100)
commit0ede05c7a961c1295ef782f71712ac694f7e733e
treec8cf1c380c40406340df8a522c965227cd835869
parent36df00b77317e42f3b09302cc513f6e833595f32
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