Commit fc56c767 authored by Sebastian Dröge's avatar Sebastian Dröge
Browse files

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

parent d1c74779
......@@ -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);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment