oggmux: Reset the segment on flush-stop events and when going back to READY

This commit is contained in:
Sebastian Dröge 2011-04-01 10:57:08 +02:00
parent d1c74779f9
commit fc56c76773

View file

@ -351,6 +351,10 @@ gst_ogg_mux_sink_event (GstPad * pad, GstEvent * event)
break;
}
case GST_EVENT_FLUSH_STOP:{
gst_segment_init (ogg_pad->segment, GST_FORMAT_UNDEFINED);
break;
}
default:
ret = TRUE;
break;
@ -1744,6 +1748,8 @@ gst_ogg_mux_clear_collectpads (GstCollectPads * collect)
gst_buffer_unref (oggpad->next_buffer);
oggpad->next_buffer = NULL;
}
gst_segment_init (oggpad->segment, GST_FORMAT_UNDEFINED);
}
}