mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-26 02:00:33 +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);
|
GST_DEBUG_FUNCPTR (gst_dtmf_src_get_property);
|
||||||
|
|
||||||
g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_INTERVAL,
|
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,
|
"Interval in ms between two tone packets", MIN_PACKET_INTERVAL,
|
||||||
MAX_PACKET_INTERVAL, DEFAULT_PACKET_INTERVAL, G_PARAM_READWRITE));
|
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) {
|
switch (prop_id) {
|
||||||
case PROP_INTERVAL:
|
case PROP_INTERVAL:
|
||||||
dtmfsrc->interval = g_value_get_int (value);
|
dtmfsrc->interval = g_value_get_uint (value);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
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",
|
"The payload type of the packets",
|
||||||
0, 0x80, DEFAULT_PT, G_PARAM_READWRITE));
|
0, 0x80, DEFAULT_PT, G_PARAM_READWRITE));
|
||||||
g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_INTERVAL,
|
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,
|
"Interval in ms between two rtp packets", MIN_PACKET_INTERVAL,
|
||||||
MAX_PACKET_INTERVAL, DEFAULT_PACKET_INTERVAL, G_PARAM_READWRITE));
|
MAX_PACKET_INTERVAL, DEFAULT_PACKET_INTERVAL, G_PARAM_READWRITE));
|
||||||
g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_REDUNDANCY,
|
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",
|
"Number of packets to send to indicate start and stop dtmf events",
|
||||||
MIN_PACKET_REDUNDANCY, MAX_PACKET_REDUNDANCY,
|
MIN_PACKET_REDUNDANCY, MAX_PACKET_REDUNDANCY,
|
||||||
DEFAULT_PACKET_REDUNDANCY, G_PARAM_READWRITE));
|
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);
|
gst_rtp_dtmf_src_set_caps (dtmfsrc);
|
||||||
break;
|
break;
|
||||||
case PROP_INTERVAL:
|
case PROP_INTERVAL:
|
||||||
dtmfsrc->interval = g_value_get_int (value);
|
dtmfsrc->interval = g_value_get_uint (value);
|
||||||
break;
|
break;
|
||||||
case PROP_REDUNDANCY:
|
case PROP_REDUNDANCY:
|
||||||
dtmfsrc->packet_redundancy = g_value_get_int (value);
|
dtmfsrc->packet_redundancy = g_value_get_uint (value);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
||||||
|
|
Loading…
Reference in a new issue