mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
gst-libs/gst/cdda/gstcddabasesrc.c: No need to post a tag message on the bus when seeking within the same track, only...
Original commit message from CVS: * gst-libs/gst/cdda/gstcddabasesrc.c: (gst_cdda_base_src_handle_track_seek): No need to post a tag message on the bus when seeking within the same track, only post it when the current track changes.
This commit is contained in:
parent
e0f836f461
commit
c0b087e4b7
2 changed files with 19 additions and 7 deletions
|
@ -1,3 +1,11 @@
|
|||
2006-01-12 Tim-Philipp Müller <tim at centricular dot net>
|
||||
|
||||
* gst-libs/gst/cdda/gstcddabasesrc.c:
|
||||
(gst_cdda_base_src_handle_track_seek):
|
||||
No need to post a tag message on the bus when seeking
|
||||
within the same track, only post it when the current
|
||||
track changes.
|
||||
|
||||
2006-01-11 Jan Schmidt <thaytan@mad.scientist.com>
|
||||
|
||||
* gst/playback/gstplaybasebin.c: (group_destroy),
|
||||
|
|
|
@ -790,16 +790,20 @@ gst_cdda_base_src_handle_track_seek (GstCddaBaseSrc * src, gdouble rate,
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
src->cur_track = (gint) start;
|
||||
src->uri_track = -1;
|
||||
src->prev_track = -1;
|
||||
GST_DEBUG_OBJECT (src, "seeking to track %d", start + 1);
|
||||
|
||||
GST_DEBUG_OBJECT (src, "seeking to track %d", src->cur_track + 1);
|
||||
|
||||
src->cur_sector = src->tracks[src->cur_track].start;
|
||||
src->cur_sector = src->tracks[start].start;
|
||||
GST_DEBUG_OBJECT (src, "starting at sector %d", src->cur_sector);
|
||||
|
||||
gst_cdda_base_src_update_duration (src);
|
||||
if (src->cur_track != start) {
|
||||
src->cur_track = (gint) start;
|
||||
src->uri_track = -1;
|
||||
src->prev_track = -1;
|
||||
|
||||
gst_cdda_base_src_update_duration (src);
|
||||
} else {
|
||||
GST_DEBUG_OBJECT (src, "is current track, just seeking back to start");
|
||||
}
|
||||
|
||||
/* send fake segment seek event in TIME format to
|
||||
* base class (so we get a newsegment etc.) */
|
||||
|
|
Loading…
Reference in a new issue