summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorEdward Hervey <edward.hervey@collabora.co.uk>2012-05-18 11:02:52 +0200
committerEdward Hervey <edward.hervey@collabora.co.uk>2012-05-18 11:02:52 +0200
commit63f7cdf3198c9bbe70e8c4dd5deb58a4579aca1a (patch)
tree7ca4397cd1f76f0b43c67bf5fdd3e42ea57d1516 /ext
parentb295f620e74813b79a8000286abe0e8ec3bccbdf (diff)
jpegdec: When dropping frames on EOS, flush out data
Cleaner way of handling stray data
Diffstat (limited to 'ext')
-rw-r--r--ext/jpeg/gstjpegdec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/jpeg/gstjpegdec.c b/ext/jpeg/gstjpegdec.c
index 87ca81e4b..a77b58cf0 100644
--- a/ext/jpeg/gstjpegdec.c
+++ b/ext/jpeg/gstjpegdec.c
@@ -619,7 +619,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;
}