Fixed a small problem.
authorZeeshan Ali <zeenix@gmail.com>
Fri, 4 Nov 2005 18:03:07 +0000 (18:03 +0000)
committerZeeshan Ali <zeenix@gmail.com>
Fri, 4 Nov 2005 18:03:07 +0000 (18:03 +0000)
Original commit message from CVS:
Fixed a small problem.

ChangeLog
gst-libs/gst/rtp/gstbasertpdepayload.c

index 1f17fd2..3b69a40 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-11-04  Zeeshan Ali  <zeenix@gmail.com>
+
+       * gst-libs/gst/rtp/gstbasertpdepayload.c:
+       (gst_base_rtp_depayload_class_init), (gst_base_rtp_depayload_wait):
+       Fixed a small problem.
+
 2005-11-04  Wim Taymans  <wim@fluendo.com>
 
        * examples/seeking/Makefile.am:
index 576695e..02b37c8 100644 (file)
@@ -399,8 +399,11 @@ gst_base_rtp_depayload_wait (GstBaseRTPDepayload * filter, GstClockTime time)
 {
   GstClockID id;
 
-  g_return_if_fail (filter->clock != NULL);
   g_return_if_fail (GST_CLOCK_TIME_IS_VALID (time));
+  if (filter->clock == NULL) {
+    GST_DEBUG_OBJECT (filter, "No clock given yet");
+    return;
+  }
 
   id = gst_clock_new_single_shot_id (filter->clock, time);