GNOME Bugzilla – Bug 319406
ffdec crash when going to READY
Last modified: 2005-12-05 13:39:19 UTC
The get_buffer function tries to allocate a new buffer by gst_pad_alloc_buffer, what fails when the pipe is going to READY state. The error message is ERROR (0x825cd60 - 0:00:06.327547000) ffmpeg(12274) (0):: get_buffer() failed (-1 2147483647 2 (nil)) Immediately after that, the application crashes on segfault.
Created attachment 53728 [details] [review] Patch to fix get_buffer() behavior This patch implement fallback to gst_buffer_new_and_alloc in gstffmpegdec.c:get_buffer() if gst_pad_alloc_buffer fails. This had fixed the crash for me.
You probably need to return from the loop then, because !GST_FLOW_OK means "stop processing". So the patch is wrong.
Fine, I will try to find the correct solution.
This problem can not be reproduced anymore. It seems that the real problem was solved.