mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 00:36:51 +00:00
libs/gst/base/gstbasesrc.c: Also initialize the counter that calculates the first timestamp on a buffer correctly for...
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.
This commit is contained in:
parent
296befc9c3
commit
03cce63d25
2 changed files with 9 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
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):
|
||||
|
|
|
@ -2486,6 +2486,7 @@ gst_base_src_change_state (GstElement * element, GstStateChange transition)
|
|||
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 @@ gst_base_src_change_state (GstElement * element, GstStateChange transition)
|
|||
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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue