[MOVED FROM GST-P-FARSIGHT] Check that the format is NOT time
authorOlivier Crete <olivier.crete@collabora.co.uk>
Thu, 1 May 2008 20:31:54 +0000 (20:31 +0000)
committerEdward Hervey <bilboed@bilboed.com>
Tue, 17 Feb 2009 18:29:05 +0000 (19:29 +0100)
20080501203154-3e2dc-780e46b1f0fe76a66e2d79a2eb85d764ff5f182f.gz

gst/liveadder/liveadder.c

index 4bb30b5..6f9d9cd 100644 (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 */