pnmdec: Return early on ::finish() if we have no actual data to parse
authorSebastian Dröge <sebastian@centricular.com>
Tue, 22 Oct 2019 06:30:34 +0000 (09:30 +0300)
committerTim-Philipp Müller <tim@centricular.com>
Thu, 24 Oct 2019 12:01:50 +0000 (13:01 +0100)
commit70e44a459809488df59f65b861dab712e446262c
tree43c6c962681946920dedafc7da24d5a11291805c
parent7324f427bb79c67b56d3ba1eac36dfc0fa547ebb
pnmdec: Return early on ::finish() if we have no actual data to parse

Otherwise we'd be working with a NULL buffer and cause various critical
warnings along the way.

Fixes https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/issues/1104
gst/pnm/gstpnmdec.c