jpegdec: Don't pass the same data over and over
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Sun, 7 Feb 2016 20:02:35 +0000 (15:02 -0500)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Mon, 8 Feb 2016 15:19:31 +0000 (10:19 -0500)
commit905e28a0f35552ae15aeffd4713c9e738218e681
tree69a86987c7e0a6a69b1556250963c124d98538a2
parentf301e3f236586756a3f5438a29d3e0713a2b759d
jpegdec: Don't pass the same data over and over

We already pass the entire frame to the decoder. If the decoder ask for
more data, don't pass the same data again as this leads to infinit loop.
Instead, simply fail the fill function to signal the problem with that
frame. It will then be skipped properly.

https://bugzilla.gnome.org/show_bug.cgi?id=761670
ext/jpeg/gstjpegdec.c