Original commit message from CVS:
* 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 Wim Taymans <wim.taymans@gmail.com>
+
+ * 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 <bilboed@bilboed.com>
* plugins/elements/gstqueue.c: (gst_queue_locked_dequeue):
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;
break;
case GST_STATE_CHANGE_PAUSED_TO_PLAYING:
GST_LIVE_LOCK (element);
- basesrc->priv->latency = -1;
if (basesrc->is_live) {
+ /* for live sources we restart the timestamp correction */
+ basesrc->priv->latency = -1;
basesrc->live_running = TRUE;
GST_LIVE_SIGNAL (element);
}