diff options
author | zeeshan.ali@nokia.com <zeeshan.ali@nokia.com> | 2007-03-29 10:39:04 +0000 |
---|---|---|
committer | Edward Hervey <bilboed@bilboed.com> | 2009-02-21 17:47:57 +0100 |
commit | e158fabe85030a4acbf9c586d14b416eaa391655 (patch) | |
tree | 75243dcf76dc3e5008de4d3b2b432f7c2e1213be | |
parent | e8c927e9f5bc96796504730387db1464e15a974e (diff) | |
download | gst-plugins-bad-e158fabe85030a4acbf9c586d14b416eaa391655.tar.gz gst-plugins-bad-e158fabe85030a4acbf9c586d14b416eaa391655.tar.bz2 gst-plugins-bad-e158fabe85030a4acbf9c586d14b416eaa391655.zip |
[MOVED FROM GST-P-FARSIGHT] Some code-cleanup
20070329103904-65035-db08cc7c3098b60a556d3809de912cd0e1a545c1.gz
-rw-r--r-- | gst/rtpdtmf/gstrtpdtmfsrc.c | 9 |
1 files 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); } |