event: Allow GST_CLOCK_TIME_NONE as duration for GAP events

This commit is contained in:
Sebastian Dröge 2012-10-24 11:46:01 +02:00
parent 9f42bd643e
commit e683cf0596

View file

@ -568,7 +568,6 @@ gst_event_new_gap (GstClockTime timestamp, GstClockTime duration)
GstEvent *event; GstEvent *event;
g_return_val_if_fail (GST_CLOCK_TIME_IS_VALID (timestamp), NULL); g_return_val_if_fail (GST_CLOCK_TIME_IS_VALID (timestamp), NULL);
g_return_val_if_fail (GST_CLOCK_TIME_IS_VALID (duration), NULL);
GST_CAT_TRACE (GST_CAT_EVENT, "creating gap %" GST_TIME_FORMAT " - " GST_CAT_TRACE (GST_CAT_EVENT, "creating gap %" GST_TIME_FORMAT " - "
"%" GST_TIME_FORMAT " (duration: %" GST_TIME_FORMAT ")", "%" GST_TIME_FORMAT " (duration: %" GST_TIME_FORMAT ")",