gst/base/gstbasesink.c: Also reset the ->current_* values in READY->PAUSED
authorEdward Hervey <bilboed@bilboed.com>
Fri, 18 Nov 2005 14:49:28 +0000 (14:49 +0000)
committerEdward Hervey <bilboed@bilboed.com>
Fri, 18 Nov 2005 14:49:28 +0000 (14:49 +0000)
Original commit message from CVS:
* gst/base/gstbasesink.c: (gst_base_sink_change_state):
Also reset the ->current_* values in READY->PAUSED

ChangeLog
gst/base/gstbasesink.c
libs/gst/base/gstbasesink.c

index abb6b8f..0e5b646 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-11-18  Edward Hervey  <edward@fluendo.com>
+
+       * gst/base/gstbasesink.c: (gst_base_sink_change_state): 
+       Also reset the ->current_* values in READY->PAUSED
+
 2005-11-18  Andy Wingo  <wingo@pobox.com>
 
        * gst/net/gstnetclientclock.c (gst_net_client_clock_thread):
index 73d2582..682bd97 100644 (file)
@@ -1590,6 +1590,9 @@ gst_base_sink_change_state (GstElement * element, GstStateChange transition)
       basesink->segment_start = 0;
       basesink->segment_stop = -1;
       basesink->segment_time = 0;
+      basesink->current_start = -1;
+      basesink->current_duration = -1;
+      basesink->current_end = -1;
       basesink->segment_accum = 0;
       ret = GST_STATE_CHANGE_ASYNC;
       break;
index 73d2582..682bd97 100644 (file)
@@ -1590,6 +1590,9 @@ gst_base_sink_change_state (GstElement * element, GstStateChange transition)
       basesink->segment_start = 0;
       basesink->segment_stop = -1;
       basesink->segment_time = 0;
+      basesink->current_start = -1;
+      basesink->current_duration = -1;
+      basesink->current_end = -1;
       basesink->segment_accum = 0;
       ret = GST_STATE_CHANGE_ASYNC;
       break;