GNOME Bugzilla – Bug 152289
wavparse pushes buffers on unusable source pad
Last modified: 2004-12-22 21:47:04 UTC
For some streams, gst_riff_create_audio_caps() returns NULL. In that case, the wavparse adds a source pad without ever setting the explicit caps so the negotiation never takes place. wavparse will then push buffers on its source pad even if it isn't negotiated, generating a lot of warnings and the pipeline runs as if it was successfull. I guess if gst_riff_create_audio_caps() returns NULL, then wavparse shouldn't add the source pad and it should generate an error.
Created attachment 31459 [details] [review] Proposed fix If gst_riff_create_audio_caps() returns NULL, call GST_ELEMENT_ERROR() instead of creating a pad without setting the caps.
Applied, thanks.