Commit c8456d43 authored by Wim Taymans's avatar Wim Taymans

gst/gstsegment.c: Return correct return type in case of errors.

Original commit message from CVS:
* gst/gstsegment.c: (gst_segment_to_stream_time):
Return correct return type in case of errors.
parent 34e8d485
2006-03-14 Wim Taymans <wim@fluendo.com>
* gst/gstsegment.c: (gst_segment_to_stream_time):
Return correct return type in case of errors.
2006-03-14 Wim Taymans <wim@fluendo.com>
* gst/gstformat.c: (gst_format_get_name), (gst_format_to_quark):
......
......@@ -427,12 +427,12 @@ gst_segment_to_stream_time (GstSegment * segment, GstFormat format,
{
gint64 result, time;
g_return_val_if_fail (segment != NULL, FALSE);
g_return_val_if_fail (segment != NULL, -1);
if (segment->format == GST_FORMAT_UNDEFINED)
segment->format = format;
else
g_return_val_if_fail (segment->format == format, FALSE);
g_return_val_if_fail (segment->format == format, -1);
if ((time = segment->time) == -1)
time = 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment