pngdec: use png_error() as recommended by libpng docs to signal an error

Without that the element loops endlessly on broekn pngs. Fixes #634314
This commit is contained in:
Stefan Kost 2010-11-08 14:47:04 +02:00
parent 6511730ba1
commit a513a7be75

View file

@ -343,6 +343,7 @@ pause:
("stream stopped, reason %s", gst_flow_get_name (ret)));
gst_pad_push_event (pngdec->srcpad, gst_event_new_eos ());
}
png_error (png_ptr, "Internal data stream error.");
return;
}
short_buffer: