From: <wt...@ke...> - 2007-10-01 17:59:34
|
CVS Root: /cvs/gstreamer Module: gstreamer Changes by: wtay Date: Mon Oct 01 2007 17:59:35 UTC Log message: * libs/gst/base/gstbasesrc.c: (gst_base_src_change_state): Also initialize the counter that calculates the first timestamp on a buffer correctly for non-live sources. Modified files: . : ChangeLog libs/gst/base : gstbasesrc.c Links: http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/ChangeLog.diff?r1=1.3443&r2=1.3444 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/libs/gst/base/gstbasesrc.c.diff?r1=1.142&r2=1.143 ====Begin Diffs==== Index: ChangeLog =================================================================== RCS file: /cvs/gstreamer/gstreamer/ChangeLog,v retrieving revision 1.3443 retrieving revision 1.3444 diff -u -d -r1.3443 -r1.3444 --- ChangeLog 1 Oct 2007 12:31:26 -0000 1.3443 +++ ChangeLog 1 Oct 2007 17:59:19 -0000 1.3444 @@ -1,3 +1,9 @@ +2007-10-01 Wim Taymans <wim...@gm...> + + * libs/gst/base/gstbasesrc.c: (gst_base_src_change_state): + Also initialize the counter that calculates the first timestamp on a + buffer correctly for non-live sources. 2007-10-01 Edward Hervey <bi...@bi...> * plugins/elements/gstqueue.c: (gst_queue_locked_dequeue): Index: gstbasesrc.c RCS file: /cvs/gstreamer/gstreamer/libs/gst/base/gstbasesrc.c,v retrieving revision 1.142 retrieving revision 1.143 diff -u -d -r1.142 -r1.143 --- gstbasesrc.c 19 Sep 2007 20:39:52 -0000 1.142 +++ gstbasesrc.c 1 Oct 2007 17:59:21 -0000 1.143 @@ -2486,6 +2486,7 @@ break; case GST_STATE_CHANGE_READY_TO_PAUSED: GST_LIVE_LOCK (element); + basesrc->priv->latency = -1; if (basesrc->is_live) { no_preroll = TRUE; basesrc->live_running = FALSE; @@ -2496,8 +2497,9 @@ case GST_STATE_CHANGE_PAUSED_TO_PLAYING: - basesrc->priv->latency = -1; + /* for live sources we restart the timestamp correction */ + basesrc->priv->latency = -1; basesrc->live_running = TRUE; GST_LIVE_SIGNAL (element); } |