summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Crete <olivier.crete@collabora.co.uk>2007-04-24 20:02:52 +0000
committerEdward Hervey <bilboed@bilboed.com>2009-02-21 17:47:58 +0100
commit9fe41ae2805fb84eeb10d63b383b0e3d9e1168d4 (patch)
tree3c23e710e0023bbd9f8d761573a1840d71b67d7a
parent2a8042fa72ad8000fdfbc5f583b970a63ba0d65a (diff)
downloadgst-plugins-bad-9fe41ae2805fb84eeb10d63b383b0e3d9e1168d4.tar.gz
gst-plugins-bad-9fe41ae2805fb84eeb10d63b383b0e3d9e1168d4.tar.bz2
gst-plugins-bad-9fe41ae2805fb84eeb10d63b383b0e3d9e1168d4.zip
[MOVED FROM GST-P-FARSIGHT] 80 column is enough for everyone
20070424200252-3e2dc-d1bc17266afff2599129a25d44338062372f7ea3.gz
-rw-r--r--gst/rtpdtmf/gstrtpdtmfsrc.c20
1 files changed, 12 insertions, 8 deletions
diff --git a/gst/rtpdtmf/gstrtpdtmfsrc.c b/gst/rtpdtmf/gstrtpdtmfsrc.c
index 109343b6..a3cf333c 100644
--- a/gst/rtpdtmf/gstrtpdtmfsrc.c
+++ b/gst/rtpdtmf/gstrtpdtmfsrc.c
@@ -386,7 +386,8 @@ failure:
}
static gboolean
-gst_rtp_dtmf_src_handle_custom_upstream (GstRTPDTMFSrc *dtmfsrc, GstEvent * event)
+gst_rtp_dtmf_src_handle_custom_upstream (GstRTPDTMFSrc *dtmfsrc,
+ GstEvent * event)
{
gboolean result = FALSE;
const GstStructure *structure;
@@ -436,8 +437,8 @@ gst_rtp_dtmf_src_handle_event (GstPad * pad, GstEvent * event)
GstFormat fmt;
gint64 start, stop, position;
- gst_event_parse_new_segment (event, &update, &rate, &fmt, &start, &stop,
- &position);
+ gst_event_parse_new_segment (event, &update, &rate, &fmt, &start,
+ &stop, &position);
gst_segment_set_newsegment (&dtmfsrc->segment, update, rate, fmt,
start, stop, position);
}
@@ -477,10 +478,10 @@ gst_rtp_dtmf_src_set_property (GObject * object, guint prop_id,
dtmfsrc->pt = g_value_get_uint (value);
gst_rtp_dtmf_src_set_caps (dtmfsrc);
break;
- case PROP_INTERVAL :
+ case PROP_INTERVAL:
dtmfsrc->interval = g_value_get_int (value);
break;
- case PROP_REDUNDANCY :
+ case PROP_REDUNDANCY:
dtmfsrc->packet_redundancy = g_value_get_int (value);
break;
default:
@@ -554,14 +555,16 @@ gst_rtp_dtmf_prepare_timestamps (GstRTPDTMFSrc *dtmfsrc)
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));
+ GST_ERROR_OBJECT (dtmfsrc, "No clock set for element %s",
+ GST_ELEMENT_NAME (dtmfsrc));
dtmfsrc->timestamp = GST_CLOCK_TIME_NONE;
}
dtmfsrc->rtp_timestamp = dtmfsrc->ts_base +
gst_util_uint64_scale_int (
gst_segment_to_running_time (&dtmfsrc->segment, GST_FORMAT_TIME,
- dtmfsrc->timestamp - gst_element_get_base_time (GST_ELEMENT (dtmfsrc))),
+ dtmfsrc->timestamp -
+ gst_element_get_base_time (GST_ELEMENT (dtmfsrc))),
dtmfsrc->clock_rate, GST_SECOND);
}
@@ -629,7 +632,8 @@ gst_rtp_dtmf_src_wait_for_buffer_ts (GstRTPDTMFSrc *dtmfsrc, GstBuffer * buf)
}
else {
- GST_ERROR_OBJECT (dtmfsrc, "No clock set for element %s", GST_ELEMENT_NAME (dtmfsrc));
+ GST_ERROR_OBJECT (dtmfsrc, "No clock set for element %s",
+ GST_ELEMENT_NAME (dtmfsrc));
}
}