mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
jpegdec: When dropping frames on EOS, flush out data
Cleaner way of handling stray data
This commit is contained in:
parent
d243fb9178
commit
9c4e195e79
1 changed files with 2 additions and 1 deletions
|
@ -599,7 +599,8 @@ have_full_frame:
|
||||||
return gst_video_decoder_have_frame (bdec);
|
return gst_video_decoder_have_frame (bdec);
|
||||||
|
|
||||||
drop_frame:
|
drop_frame:
|
||||||
return GST_VIDEO_DECODER_FLOW_DROPPED;
|
gst_adapter_flush (adapter, size);
|
||||||
|
return GST_FLOW_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue