GNOME Bugzilla – Bug 132849
gst_element_query crashes when using vorbisfile
Last modified: 2004-12-22 21:47:04 UTC
When I'm doing a query in jamboree to get the current time when using vorbisfile results in a crash: q = gst_element_query (sink, GST_QUERY_POSITION, &format, &time); It works with the mad decoder. 0x004b21dc in ov_pcm_total () from /usr/lib/libvorbisfile.so.3 (gdb) bt
+ Trace 43603
This appears to be a unique stack trace, according to the simple-dup-finder. I'm setting fields appropriately.
I think the crash happens when there is no source or when it's stopped.
Brings up a general question: How should queries be handled on NULL or READY? I'd propose to refuse them to be in line with events (which can only happen on PAUSED or PLAYING). Especially in the context that I want to make queries be events in 0.10. Comments?
benjamin: sounds good richard: we're deprecating vorbisfile, have you tried with oggdemux ! vorbisdec ?
I made my code not do a query unless in PLAYING state... I will switch to the new element at some point though. I could hack the old behavior back in temporarily and try oggdemux if it would help.
Vorbisfile is now removed from 0.7.x and will not be shipping with 0.8. I am closing this bug, open a new one if the new elements give you any trouble Richard.