jpegdec: When dropping frames on EOS, flush out data
Cleaner way of handling stray data
This commit is contained in:
parent
d243fb9178
commit
9c4e195e79
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user