mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
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.
This commit is contained in:
parent
34e8d485cc
commit
c8456d4371
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
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;
|
||||
|
|
Loading…
Reference in a new issue