segment: Return -1 if gst_segment_to_stream_time_full() considers the position not...
authorSebastian Dröge <sebastian@centricular.com>
Mon, 26 Oct 2015 08:53:35 +0000 (10:53 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 26 Oct 2015 08:53:35 +0000 (10:53 +0200)
Fixes GstPipeline unit test.

https://bugzilla.gnome.org/show_bug.cgi?id=756564

gst/gstsegment.c

index 6da432a..fbb71e3 100644 (file)
@@ -529,7 +529,7 @@ gst_segment_to_stream_time (const GstSegment * segment, GstFormat format,
   if (gst_segment_to_stream_time_full (segment, format, position, &result) == 1)
     return result;
 
-  return 0;
+  return -1;
 }
 
 /**