gst/gstclock.c: Reject invalid clock times for interval of periodic ids.

Original commit message from CVS:
Patch by: René Stadler <mail at renestadler dot de>
* gst/gstclock.c: (gst_clock_new_periodic_id):
Reject invalid clock times for interval of periodic ids.
Fixes ##383506.
This commit is contained in:
René Stadler 2006-12-08 16:12:44 +00:00 committed by Wim Taymans
parent 1cca54b44c
commit f26e917bc3
2 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,11 @@
2005-03-08 Wim Taymans <wim@fluendo.com>
Patch by: René Stadler <mail at renestadler dot de>
* gst/gstclock.c: (gst_clock_new_periodic_id):
Reject invalid clock times for interval of periodic ids.
Fixes ##383506.
2006-12-07 Jan Schmidt <thaytan@mad.scientist.com>
* gst/gstelementfactory.c: (gst_element_factory_create):

View file

@ -281,6 +281,7 @@ gst_clock_new_periodic_id (GstClock * clock, GstClockTime start_time,
g_return_val_if_fail (GST_IS_CLOCK (clock), NULL);
g_return_val_if_fail (GST_CLOCK_TIME_IS_VALID (start_time), NULL);
g_return_val_if_fail (interval != 0, NULL);
g_return_val_if_fail (GST_CLOCK_TIME_IS_VALID (interval), NULL);
return gst_clock_entry_new (clock,
start_time, interval, GST_CLOCK_ENTRY_PERIODIC);