gst/base/gstbasesink.c: Also reset the ->current_* values in READY->PAUSED

Original commit message from CVS:
* gst/base/gstbasesink.c: (gst_base_sink_change_state):
Also reset the ->current_* values in READY->PAUSED
This commit is contained in:
Edward Hervey 2005-11-18 14:49:28 +00:00
parent 24fc208196
commit d32702193e
3 changed files with 11 additions and 0 deletions

View file

@ -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):

View 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;

View 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;