mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 03:19:40 +00:00
[MOVED FROM GST-P-FARSIGHT] Some code-cleanup
20070329103904-65035-db08cc7c3098b60a556d3809de912cd0e1a545c1.gz
This commit is contained in:
parent
e8c927e9f5
commit
e158fabe85
1 changed files with 5 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue