GNOME Bugzilla – Bug 325999
[mad] queries in BYTE format return wrong values
Last modified: 2006-01-23 13:10:09 UTC
Please describe the problem: here's the output of a script to reproduce the bug: $ python querypos.py honolulu.mp3 duration 3639296 last_src_position 3639296 last_mad_position 32076288 $ wc -c honolulu.mp3 3639296 honolulu.mp3 as you can see, the position returned by mad is wrong. honolulu.mp3 is at http://gstreamer.freedesktop.org/media/medium/honolulu.mp3 Steps to reproduce: 1. 2. 3. Actual results: Expected results: Does this happen every time? Other information:
Created attachment 56870 [details] script to preproduce the bug
I think there might be a misunderstanding about what mad is supposed to return. If you query mad for a BYTE position or duration on the source pad, it will return the position/duration in terms of raw audio output (ie. the format it emits on the source pad), so this has nothing to do with the byte position the parser is in in the .mp3 file. IMHO it should just return FALSE to a BYTES query on the source pad btw, I don't see how this is useful (what are you using it for btw?)
Oh, thanks for the explaination. Serpentine used to query fakesink in a pipeline like filesrc ! decodebin ! fakesink and was getting (with 0.10) query_position > query_duration. Now it uses FORMAT_TIME.