A small fix
authorZeeshan Ali <zeenix@gmail.com>
Mon, 31 Oct 2005 12:09:19 +0000 (12:09 +0000)
committerZeeshan Ali <zeenix@gmail.com>
Mon, 31 Oct 2005 12:09:19 +0000 (12:09 +0000)
Original commit message from CVS:
A small fix

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

index 5e8fac3..1931432 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-10-31  Zeeshan Ali  <zeenix@gmail.com>
+
+       * gst-libs/gst/rtp/gstbasertpdepayload.c:
+       (gst_base_rtp_depayload_push):
+       A small fix
+
 2005-10-31  Wim Taymans  <wim@fluendo.com>
 
        * gst-libs/gst/audio/gstringbuffer.h:
index 432e760..369b190 100644 (file)
@@ -272,9 +272,11 @@ gst_base_rtp_depayload_push (GstBaseRTPDepayload * filter, GstBuffer * rtp_buf)
   out_buf = bclass->process (filter, rtp_buf);
   if (out_buf) {
     /* set the caps */
-    srccaps = gst_pad_get_caps (filter->srcpad);
-    gst_buffer_set_caps (GST_BUFFER (out_buf), srccaps);
-    gst_caps_unref (srccaps);
+    srccaps = GST_PAD_CAPS (filter->srcpad);
+
+    if (srccaps)
+      gst_buffer_set_caps (GST_BUFFER (out_buf), srccaps);
+
     /* set the timestamp
      * I am assuming here that the timestamp of the last RTP buffer
      * is the same as the timestamp wanted on the collector