From e158fabe85030a4acbf9c586d14b416eaa391655 Mon Sep 17 00:00:00 2001 From: "zeeshan.ali@nokia.com" Date: Thu, 29 Mar 2007 10:39:04 +0000 Subject: [MOVED FROM GST-P-FARSIGHT] Some code-cleanup 20070329103904-65035-db08cc7c3098b60a556d3809de912cd0e1a545c1.gz --- gst/rtpdtmf/gstrtpdtmfsrc.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/gst/rtpdtmf/gstrtpdtmfsrc.c b/gst/rtpdtmf/gstrtpdtmfsrc.c index 2885ab67..ad453d39 100644 --- a/gst/rtpdtmf/gstrtpdtmfsrc.c +++ b/gst/rtpdtmf/gstrtpdtmfsrc.c @@ -474,9 +474,8 @@ gst_rtp_dtmf_src_start (GstRTPDTMFSrc *dtmfsrc, dtmfsrc->first_packet = TRUE; clock = GST_ELEMENT_CLOCK (dtmfsrc); - if (clock != NULL) { + if (clock != NULL) dtmfsrc->timestamp = gst_clock_get_time (GST_ELEMENT_CLOCK (dtmfsrc)); - } else { GST_ERROR_OBJECT (dtmfsrc, "No clock set for element %s", GST_ELEMENT_NAME (dtmfsrc)); @@ -633,10 +632,12 @@ gst_rtp_dtmf_src_set_caps (GstRTPDTMFSrc *dtmfsrc) "clock-base", G_TYPE_UINT, dtmfsrc->ts_base, "seqnum-base", G_TYPE_UINT, dtmfsrc->seqnum_base, NULL); - if (!gst_pad_set_caps (dtmfsrc->srcpad, caps)) { + if (!gst_pad_set_caps (dtmfsrc->srcpad, caps)) GST_ERROR_OBJECT (dtmfsrc, "Failed to set caps %" GST_PTR_FORMAT " on src pad", caps); - } + else + GST_DEBUG_OBJECT (dtmfsrc, + "caps %" GST_PTR_FORMAT " set on src pad", caps); gst_caps_unref (caps); } -- cgit v1.2.1