GNOME Bugzilla – Bug 144866
[flac] seeking broken, duration not set on buffers [PATCH]
Last modified: 2004-12-22 21:47:04 UTC
The attached patch fixes two problems with flacdec: * seeking in flacs doesn't work * some sinks (e.g. artsdsink, nassink) report wrong values on doing gst_element_query(), e.g. artsdsink reports '11 seconds' where it should report a time position of '1 seconds'. Setting the duration on the buffer seems to fix that. I also think the whole block where gst_pad_set_explicit_caps() is called is called (line 493-506) should be moved to the beginning of the function, but as it doesn't seem to be necessary to make things work I've left it as it is. Cheers -Tim
Created attachment 28952 [details] [review] proposed patch
Looks good, applied.