diff options
Diffstat (limited to 'gst/dtmf')
-rw-r--r-- | gst/dtmf/gstdtmfsrc.c | 4 | ||||
-rw-r--r-- | gst/dtmf/gstrtpdtmfsrc.c | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/gst/dtmf/gstdtmfsrc.c b/gst/dtmf/gstdtmfsrc.c index 76800867..866a7191 100644 --- a/gst/dtmf/gstdtmfsrc.c +++ b/gst/dtmf/gstdtmfsrc.c @@ -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); diff --git a/gst/dtmf/gstrtpdtmfsrc.c b/gst/dtmf/gstrtpdtmfsrc.c index a75f4b0e..e0a946d6 100644 --- a/gst/dtmf/gstrtpdtmfsrc.c +++ b/gst/dtmf/gstrtpdtmfsrc.c @@ -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); |