segment: remove the bounds check from _to_running_time_full()
authorWim Taymans <wtaymans@redhat.com>
Fri, 20 Mar 2015 08:00:47 +0000 (09:00 +0100)
committerWim Taymans <wtaymans@redhat.com>
Fri, 20 Mar 2015 08:00:47 +0000 (09:00 +0100)
commitbc282da83cbc8147b7c0ed59e3bd5a6011e90eb2
treefe8d92fd57e009adb860ab0429db8ef075d3e3a2
parentedf484ab6b10d04c334f2b32eb043cb749dc3af8
segment: remove the bounds check from _to_running_time_full()

Do not do any checks for the start/stop in the new
gst_segment_to_running_time_full() method, we can let this be done by
the more capable gst_segment_clip() method. This allows us to remove the
enum of results and only return the sign of the calculated running-time.
We need to put the old clipping checks in the old
gst_segment_to_running_time() still because they work slightly
differently than the _clip methods.

See https://bugzilla.gnome.org/show_bug.cgi?id=740575
gst/gst.c
gst/gstsegment.c
gst/gstsegment.h
tests/check/gst/gstsegment.c
win32/common/libgstreamer.def