gst/rtp/gstrtpg729pay.c: Don't ignore the return value of setcaps.
authorWim Taymans <wim.taymans@gmail.com>
Tue, 11 Nov 2008 17:33:00 +0000 (17:33 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Tue, 11 Nov 2008 17:33:00 +0000 (17:33 +0000)
Original commit message from CVS:
* gst/rtp/gstrtpg729pay.c: (gst_rtp_g729_pay_set_caps):
Don't ignore the return value of setcaps.

ChangeLog
gst/rtp/gstrtpg729pay.c

index fd3a75f..b9f84df 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2008-11-11  Wim Taymans  <wim.taymans@collabora.co.uk>
 
+       * gst/rtp/gstrtpg729pay.c: (gst_rtp_g729_pay_set_caps):
+       Don't ignore the return value of setcaps.
+
+2008-11-11  Wim Taymans  <wim.taymans@collabora.co.uk>
+
        Patch by: Olivier Crete <tester at tester dot ca>
 
        * gst/rtp/gstrtpg729pay.c: (gst_rtp_g729_pay_base_init),
index ca8674b..8fd19c1 100644 (file)
@@ -126,6 +126,7 @@ gst_rtp_g729_pay_init (GstRTPG729Pay * pay, GstRTPG729PayClass * klass)
 static gboolean
 gst_rtp_g729_pay_set_caps (GstBaseRTPPayload * payload, GstCaps * caps)
 {
+  gboolean res;
   GstStructure *structure;
   gint pt;
 
@@ -136,9 +137,9 @@ gst_rtp_g729_pay_set_caps (GstBaseRTPPayload * payload, GstCaps * caps)
   payload->pt = pt;
   payload->dynamic = pt != GST_RTP_PAYLOAD_G729;
 
-  gst_basertppayload_set_outcaps (payload, NULL);
+  res = gst_basertppayload_set_outcaps (payload, NULL);
 
-  return TRUE;
+  return res;
 }
 
 static GstFlowReturn