gst/rtp/gstrtpg729pay.c: Don't ignore the return value of setcaps.

Original commit message from CVS:
* gst/rtp/gstrtpg729pay.c: (gst_rtp_g729_pay_set_caps):
Don't ignore the return value of setcaps.
This commit is contained in:
Wim Taymans 2008-11-11 17:33:00 +00:00
parent 774f238b96
commit 4c62e33eac
2 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,8 @@
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>

View 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