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 162355 - [PATCH] [cdparanoia] Fix for _QUERY_POSITION
[PATCH] [cdparanoia] Fix for _QUERY_POSITION
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins
git master
Other Linux
: Normal normal
: 0.8.9
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks: 171600
 
 
Reported: 2004-12-28 00:27 UTC by Julian Scheel
Modified: 2005-04-27 13:58 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
the patch (1.12 KB, patch)
2004-12-28 00:28 UTC, Julian Scheel
none Details | Review
update (4.53 KB, patch)
2005-01-09 13:30 UTC, Ronald Bultje
none Details | Review
update (12.32 KB, patch)
2005-01-09 14:22 UTC, Ronald Bultje
none Details | Review
update (11.90 KB, patch)
2005-01-22 22:13 UTC, Julian Scheel
none Details | Review
possible solution for 0.8 (13.08 KB, patch)
2005-04-18 17:03 UTC, Ronald Bultje
none Details | Review

Description Julian Scheel 2004-12-28 00:27:39 UTC
This patch updated the cdparanoia-module to always deliver the position in the 
current track instead of the position based on the last seek-action as 
starting-point.
Comment 1 Julian Scheel 2004-12-28 00:28:57 UTC
Created attachment 35244 [details] [review]
the patch
Comment 2 Ronald Bultje 2004-12-28 08:45:42 UTC
Does this break sound-juicer and is this expected behaviour of the element?
Comment 3 Julian Scheel 2004-12-28 14:06:44 UTC
It doesn't do any harm to totem and sound-juicer. 
As discussed in #gstreamer this behaviour should be fine. 
Comment 4 Ronald Bultje 2005-01-09 01:51:49 UTC
I checked it in seek 11 (Totem is doing weird stuff, unrelated; see
gst-plugins/examples/seeking/seek 11 cdda://), and the timestamps just increment
between tracks. Make sure to change timestamps as provided on data, too. Also,
on track change, make sure to send a discont event since there's a time
discontinuity.

I'll try to work on this later. If you have some time, you can do it yourself.
I'll apply that as part of your patch.
Comment 5 Ronald Bultje 2005-01-09 13:30:22 UTC
Created attachment 35725 [details] [review]
update

This patch stamps output buffers, too. This should be the intended behaviour, I
think. Tested in seek 11 cdda://, works fine.
Comment 6 Ronald Bultje 2005-01-09 14:22:13 UTC
Created attachment 35728 [details] [review]
update

As noticed by Julian, the last track failed. Updated patch, with seeking fixed
etc. Works fine in apps such as seek 11. Unfortunately, apps such as s-j and
such relied on broken cdparanoia element behaviour so this breaks those apps.
Therefore, we can apply this only for 0.9, or as a separate element.
Comment 7 Julian Scheel 2005-01-22 22:13:14 UTC
Created attachment 36392 [details] [review]
update

This update fixes continous playback of a cd. If the is_track_switch-function
returns true, the timestamp has to be fetched again, because it has to be
relative to the src->cur_tracks begin point, and src->cur_track is changed if
is_track_switch returns true.
Comment 8 Ronald Bultje 2005-04-18 17:03:33 UTC
Created attachment 45404 [details] [review]
possible solution for 0.8

This one will use a track-mode, but only if the URI tells us so (so cdda://1
will play track 1, but cdda:// will play the whole CD).
Comment 9 Ronald Bultje 2005-04-27 13:58:56 UTC
Applied the above with small modifications.