mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 09:40:37 +00:00
[MOVED FROM GST-P-FARSIGHT] Make interval and packet_redundancy into uint
20070917001552-3e2dc-60032e547b3669b87317c981d985c156aab91b40.gz
This commit is contained in:
parent
34d6733bd5
commit
95eef52a77
2 changed files with 6 additions and 6 deletions
|
@ -287,7 +287,7 @@ gst_dtmf_src_class_init (GstDTMFSrcClass * klass)
|
|||
GST_DEBUG_FUNCPTR (gst_dtmf_src_get_property);
|
||||
|
||||
g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_INTERVAL,
|
||||
g_param_spec_int ("interval", "Interval between tone packets",
|
||||
g_param_spec_uint ("interval", "Interval between tone packets",
|
||||
"Interval in ms between two tone packets", MIN_PACKET_INTERVAL,
|
||||
MAX_PACKET_INTERVAL, DEFAULT_PACKET_INTERVAL, G_PARAM_READWRITE));
|
||||
|
||||
|
@ -428,7 +428,7 @@ gst_dtmf_src_set_property (GObject * object, guint prop_id,
|
|||
|
||||
switch (prop_id) {
|
||||
case PROP_INTERVAL:
|
||||
dtmfsrc->interval = g_value_get_int (value);
|
||||
dtmfsrc->interval = g_value_get_uint (value);
|
||||
break;
|
||||
default:
|
||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
||||
|
|
|
@ -291,11 +291,11 @@ gst_rtp_dtmf_src_class_init (GstRTPDTMFSrcClass * klass)
|
|||
"The payload type of the packets",
|
||||
0, 0x80, DEFAULT_PT, G_PARAM_READWRITE));
|
||||
g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_INTERVAL,
|
||||
g_param_spec_int ("interval", "Interval between rtp packets",
|
||||
g_param_spec_uint ("interval", "Interval between rtp packets",
|
||||
"Interval in ms between two rtp packets", MIN_PACKET_INTERVAL,
|
||||
MAX_PACKET_INTERVAL, DEFAULT_PACKET_INTERVAL, G_PARAM_READWRITE));
|
||||
g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_REDUNDANCY,
|
||||
g_param_spec_int ("packet-redundancy", "Packet Redundancy",
|
||||
g_param_spec_uint ("packet-redundancy", "Packet Redundancy",
|
||||
"Number of packets to send to indicate start and stop dtmf events",
|
||||
MIN_PACKET_REDUNDANCY, MAX_PACKET_REDUNDANCY,
|
||||
DEFAULT_PACKET_REDUNDANCY, G_PARAM_READWRITE));
|
||||
|
@ -465,10 +465,10 @@ gst_rtp_dtmf_src_set_property (GObject * object, guint prop_id,
|
|||
gst_rtp_dtmf_src_set_caps (dtmfsrc);
|
||||
break;
|
||||
case PROP_INTERVAL:
|
||||
dtmfsrc->interval = g_value_get_int (value);
|
||||
dtmfsrc->interval = g_value_get_uint (value);
|
||||
break;
|
||||
case PROP_REDUNDANCY:
|
||||
dtmfsrc->packet_redundancy = g_value_get_int (value);
|
||||
dtmfsrc->packet_redundancy = g_value_get_uint (value);
|
||||
break;
|
||||
default:
|
||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
||||
|
|
Loading…
Reference in a new issue