From f26e917bc3b5d8d1dbc2066c9e57333d08e49a65 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ren=C3=A9=20Stadler?= Date: Fri, 8 Dec 2006 16:12:44 +0000 Subject: [PATCH] gst/gstclock.c: Reject invalid clock times for interval of periodic ids. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Original commit message from CVS: Patch by: René Stadler * gst/gstclock.c: (gst_clock_new_periodic_id): Reject invalid clock times for interval of periodic ids. Fixes ##383506. --- ChangeLog | 8 ++++++++ gst/gstclock.c | 1 + 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index 4c4af1c..129589c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2005-03-08 Wim Taymans + + Patch by: René Stadler + + * gst/gstclock.c: (gst_clock_new_periodic_id): + Reject invalid clock times for interval of periodic ids. + Fixes ##383506. + 2006-12-07 Jan Schmidt * gst/gstelementfactory.c: (gst_element_factory_create): diff --git a/gst/gstclock.c b/gst/gstclock.c index 4ef7b9d..e2f3c17 100644 --- a/gst/gstclock.c +++ b/gst/gstclock.c @@ -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); -- 2.7.4