GNOME Bugzilla – Bug 649780
flac: seek beyond end fails instead of EOSing immediately
Last modified: 2011-06-15 22:43:36 UTC
my code : gst_element_seek_simple (play, GST_FORMAT_TIME, GST_SEEK_FLAG_FLUSH | GST_SEEK_FLAG_KEY_UNIT, pos); If the pos params exceed the duration of flac files, gst_element_seek_simple will return false, and seek will be failure. It should be equivalent to seek to the end, right? I have tested several audio format, including mp3, mp4, wav, wma, ogg and flac. Only flac has this problem. Thanks!
What's the pipeline you use? If you're using playbin2/playbin, is flacparse used?
I'm using the playbin2, and have installed libgstflac.so , is flacparse included in the so?
I find flacparse in gst-plugin-bad, I will try
Ok, I see why it would fail with only flacdec. I'll prepare a patch but please retest with flacparse
please could you tell me which plug-in should be enabled to make flacparse, I want to test it as quickly as possible
Created attachment 187611 [details] [review] flacdec: Send EOS when seeking after the end of file instead of failing Fixes bug #649780.
gst-plugins-bad (older releases) or gst-plugins-good (newest release). Could you also test the attached patch (without flacparse), it should fix the bug but I didn't test it yet ;)
I have installed flacdec by --enable-flac in gst-plugins-good-0.10.28, is it enough? wait a moment, I will try to test the patch
Yeah, That's OK! Thanks!
Both two methods can resolve this porblem.
Ok, thanks. I'll push this patch soon.
commit d4b9cbc1ae6abdffe2ff2309e10eafe94b090982 Author: Sebastian Dröge <sebastian.droege@collabora.co.uk> Date: Wed May 11 10:25:15 2011 +0200 flacdec: Send EOS when seeking after the end of file instead of failing Fixes bug #649780.