assrender: If the video segment is not in TIME format don't accept it

This commit is contained in:
Sebastian Dröge 2009-11-05 16:41:56 +01:00
parent 6db13ce20a
commit 06a79e9263

View file

@ -688,12 +688,13 @@ gst_assrender_event_video (GstPad * pad, GstEvent * event)
gst_segment_set_newsegment (&render->video_segment, update, rate,
format, start, stop, time);
ret = gst_pad_push_event (render->srcpad, event);
} else {
GST_ELEMENT_WARNING (render, STREAM, MUX, (NULL),
("received non-TIME newsegment event on video input"));
ret = FALSE;
gst_event_unref (event);
}
ret = gst_pad_event_default (pad, event);
break;
}
case GST_EVENT_TAG: