jpegdec: When dropping frames on EOS, flush out data

Cleaner way of handling stray data
This commit is contained in:
Edward Hervey 2012-05-18 11:02:52 +02:00 committed by Sebastian Dröge
parent d243fb9178
commit 9c4e195e79

View file

@ -599,7 +599,8 @@ have_full_frame:
return gst_video_decoder_have_frame (bdec);
drop_frame:
return GST_VIDEO_DECODER_FLOW_DROPPED;
gst_adapter_flush (adapter, size);
return GST_FLOW_OK;
}