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

deinterlace: Improve segment handling a bit

parent 05a27328
......@@ -606,7 +606,7 @@ gst_deinterlace_reset (GstDeinterlace * self)
self->fps_n = self->fps_d = 0;
self->passthrough = FALSE;
gst_segment_init (&self->segment, GST_FORMAT_TIME);
gst_segment_init (&self->segment, GST_FORMAT_UNDEFINED);
if (self->sink_caps)
gst_caps_unref (self->sink_caps);
......@@ -1400,19 +1400,19 @@ gst_deinterlace_sink_event (GstPad * pad, GstEvent * event)
GstFormat fmt;
gboolean is_update;
gint64 start, end, base;
gdouble rate;
gdouble rate, applied_rate;
gst_event_parse_new_segment (event, &is_update, &rate, &fmt, &start,
&end, &base);
gst_event_parse_new_segment_full (event, &is_update, &rate, &applied_rate,
&fmt, &start, &end, &base);
if (fmt == GST_FORMAT_TIME) {
"Got NEWSEGMENT event in GST_FORMAT_TIME, passing on (%"
gst_segment_set_newsegment (&self->segment, is_update, rate, fmt, start,
end, base);
gst_segment_set_newsegment_full (&self->segment, is_update, rate,
applied_rate, fmt, start, end, base);
} else {
gst_segment_init (&self->segment, GST_FORMAT_TIME);
gst_segment_init (&self->segment, GST_FORMAT_UNDEFINED);
gst_deinterlace_reset_qos (self);
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