GNOME Bugzilla – Bug 96329
cdparanoia regressions
Last modified: 2004-12-22 21:47:04 UTC
A recent commit to the cdparanoia plugin removed all properties that allow you to spec from where to where it should play. Right now, afaict, it can only play from the beginning of the CD. Could this please be reverted or another way be added to choose another track?
cdparanoia uses events now to do the seeking, it defines a new seek format (tracks). seeking would work something like this now: track_format = gst_format_get_by_nick("track"); gst_pad_send_event (cdparanoia_src, gst_event_new_seek ( track_format | GST_SEEK_METHOD_SET | GST_SEEK_FLAG_FLUSH, 1)); you can set start and stop track with gst_event_new_segment_seek() sectors is specified with a seek to UNITS (need to fix that) track duration is apparently not implemented yet.
event = gst_event_new_segment_seek (gst_format_get_by_nick ("track") | GST_SEEK_METHOD_SET | GST_SEEK_FLAG_FLUSH, track, track); gst_pad_send_event (ms->priv->source_pad, event); This is what I'm doing now, and it segfaults .. the source cdparanoia element has not yet been added to a bin or connected to anything. Going to attach a gst-mask=-1 log.
Created attachment 11719 [details] log
It would be nice if you could get a backtrace of the crash.
Oh, is track 0 when it crashes? I think cdparanoia counts tracks from 1
it crashes with any track and here's the bt:
+ Trace 29351
Wim reports that this is fixed, I leave it for a couple of days but unless someone protests I will close it.
Nothing heard so closing