After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 137710 - When seeking, the sink's time is reset
When seeking, the sink's time is reset
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
0.8.0
Other other
: Normal normal
: 0.8.2
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2004-03-19 17:31 UTC by Richard Hult
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
This patch should fix it. (2.09 KB, patch)
2004-05-18 00:24 UTC, Ronald Bultje
none Details | Review

Description Richard Hult 2004-03-19 17:31:28 UTC
In jamboree, I used to do a query on the sink to get the current time to
display the current time. This didn't work well, since for some songs the
sink's time would be reset to 0 whenever a seek had been done. (I couldn't
find out a pattern, just some random mp3's didn't work. Behaved like this
for esdsink, osssink and alsasink.) 

Now I use my own timer instead, and I've noticed that rhythmbox does the
same so they might have seen the same problem.

Is querying supposed to work like that or is it a bug?
Comment 1 Ronald Bultje 2004-03-19 21:12:39 UTC
Sounds like a bug. If it's with specific mp3s, please provide a sample.
Comment 2 Richard Hult 2004-03-20 12:23:33 UTC
OK, I can reproduce this with gst-player and a specific mp3 file. Let
me know how you want the file.
Comment 3 Ronald Bultje 2004-03-20 20:10:34 UTC
Please attach to the bugreport or upload somewhere online and provide
us with a link. Thanks!
Comment 4 Richard Hult 2004-03-20 21:49:02 UTC
http://richard.imendio.net/~rhult/broken-query.mp3
Comment 5 Richard Hult 2004-03-31 10:46:57 UTC
I had a bit of trouble with the machine that song was on so sorry if it wasn't
accessible for a while. It should work now though.
Comment 6 Ronald Bultje 2004-05-16 21:32:37 UTC
Richard, I'm going to be an ass: can you please provide a small (preferrably
commandline, a few 100 lines of code or so, as small as possible) testcase for
me to reproduce this? Possibly something that simply creates a simple pipeline
from argv[1], iterates it and prints the time from a query after each iterate.
Then, after 10s or so, seek.

I'm asking because libgstplay doesn't work with audio-only (or at least not well
enough), RB and other apps have their own timers, and thus it's hard for me to
get to a simple testcase without spending hours on it... This way, I'm sure I
get the right testcase.

Thanks in advance!
Comment 7 Ronald Bultje 2004-05-18 00:24:31 UTC
Created attachment 27797 [details] [review]
This patch should fix it.

This was just applied to CVS HEAD and should fix this issue. Please test either
the patch against 0.8.1 or HEAD/CVS and tell us if it fixes your issue.
Comment 8 Ronald Bultje 2004-05-18 00:25:12 UTC
With the patch, this should be fixed. If not, please reopen.