GNOME Bugzilla – Bug 791811
festival: Forwarding duration query confuses wavparse
Last modified: 2017-12-21 03:39:17 UTC
The festival element let GstElement forward all queries. Whenver wavparse query the duration , it get the duration of the text file, not a wavfile which triggers an assertion and an integrer overflow: ERROR:gstwavparse.c:1310:gst_wavparse_stream_headers: assertion failed: (upstream_size >= wav->offset) The attached patch should work, but is only compule tested since Festival is broken on Fedora.
Created attachment 365777 [details] [review] festival: Don't forward all queries This fixes issues where wavparse would query the file size upstream and assert because the file size is way smaller then what the WAVE header says. This patch disable or cane a handful of queries that make no sense to forward.
Created attachment 365799 [details] [review] festival: Don't forward all queries Updated to set the function on the srcpad as expected instead of the sinkpad.
Attachment 365799 [details] pushed as 191c874 - festival: Don't forward all queries