mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 18:05:37 +00:00
rtspsrc: make connection-speed property a guint64
This commit is contained in:
parent
09ca5fa910
commit
87aa29d2cf
2 changed files with 5 additions and 5 deletions
|
@ -353,9 +353,9 @@ gst_rtspsrc_class_init (GstRTSPSrcClass * klass)
|
|||
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
|
||||
|
||||
g_object_class_install_property (gobject_class, PROP_CONNECTION_SPEED,
|
||||
g_param_spec_uint ("connection-speed", "Connection Speed",
|
||||
g_param_spec_uint64 ("connection-speed", "Connection Speed",
|
||||
"Network connection speed in kbps (0 = unknown)",
|
||||
0, G_MAXINT / 1000, DEFAULT_CONNECTION_SPEED,
|
||||
0, G_MAXUINT64 / 1000, DEFAULT_CONNECTION_SPEED,
|
||||
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
|
||||
|
||||
g_object_class_install_property (gobject_class, PROP_NAT_METHOD,
|
||||
|
@ -663,7 +663,7 @@ gst_rtspsrc_set_property (GObject * object, guint prop_id, const GValue * value,
|
|||
rtspsrc->latency = g_value_get_uint (value);
|
||||
break;
|
||||
case PROP_CONNECTION_SPEED:
|
||||
rtspsrc->connection_speed = g_value_get_uint (value);
|
||||
rtspsrc->connection_speed = g_value_get_uint64 (value);
|
||||
break;
|
||||
case PROP_NAT_METHOD:
|
||||
rtspsrc->nat_method = g_value_get_enum (value);
|
||||
|
@ -753,7 +753,7 @@ gst_rtspsrc_get_property (GObject * object, guint prop_id, GValue * value,
|
|||
g_value_set_uint (value, rtspsrc->latency);
|
||||
break;
|
||||
case PROP_CONNECTION_SPEED:
|
||||
g_value_set_uint (value, rtspsrc->connection_speed);
|
||||
g_value_set_uint64 (value, rtspsrc->connection_speed);
|
||||
break;
|
||||
case PROP_NAT_METHOD:
|
||||
g_value_set_enum (value, rtspsrc->nat_method);
|
||||
|
|
|
@ -201,7 +201,7 @@ struct _GstRTSPSrc {
|
|||
GTimeVal tcp_timeout;
|
||||
GTimeVal *ptcp_timeout;
|
||||
guint latency;
|
||||
guint connection_speed;
|
||||
guint64 connection_speed;
|
||||
GstRTSPNatMethod nat_method;
|
||||
gboolean do_rtcp;
|
||||
gchar *proxy_host;
|
||||
|
|
Loading…
Reference in a new issue