[MOVED FROM GST-P-FARSIGHT] Check that the format is NOT time

20080501203154-3e2dc-780e46b1f0fe76a66e2d79a2eb85d764ff5f182f.gz
This commit is contained in:
Olivier Crete 2008-05-01 20:31:54 +00:00 committed by Edward Hervey
parent 095636bfd2
commit e23efd9e81

View file

@ -815,7 +815,7 @@ gst_live_live_adder_chain (GstPad *pad, GstBuffer *buffer)
FALSE, 1.0, GST_FORMAT_TIME, 0, -1, 0);
}
if (padprivate->segment.format == GST_FORMAT_TIME)
if (padprivate->segment.format != GST_FORMAT_TIME)
goto invalid_segment;
/* Just see if we receive invalid timestamp/durations */