GNOME Bugzilla – Bug 144616
Infinite loop in wavparse.
Last modified: 2004-12-22 21:47:04 UTC
With gst-plugins-0.8.1.2, pipelines like this one; gst-launch-0.8 --gst-scheduler=entrygthread filesrc=somefile.wav ! wavparse ! spider ! esdsink get stuck in an infinite loop very often. I traced the problem back to riff-read.c which unrefs EOS in gst_riff_read_skip() without doing anything with it. The next time bytestream calls gst_pad_pull(), the pipeline gets stuck.
Created attachment 28841 [details] [review] Proposed fix Handling events in gst_riff_read_skip() like it's done in the rest of the file fixes the problem.
Created attachment 28842 [details] [review] Proposed fix (v2) Seems like calling GST_IS_EVENT (event) without checking if event was NULL wasn't such a good idea. This problem was also in the original code, fixed both.
Looks good, please apply.
What's up with that bug? Has the patch been applied? Can it be closed?
The patch hasn't been applied yet, the version in CVS is still buggy.
OK, I committed this patch to HEAD since it had been reviewed by Ronald.