Commit 64ca3b26 authored by Luis de Bethencourt's avatar Luis de Bethencourt Committed by Tim-Philipp Müller

rtph265pay: change config-interval property type from uint to int

This way we can use -1 as special value, which is nicer than MAXUINT.

https://bugzilla.gnome.org/show_bug.cgi?id=757892
parent 698e5bbf
......@@ -159,11 +159,11 @@ gst_rtp_h265_pay_class_init (GstRtpH265PayClass * klass)
g_object_class_install_property (G_OBJECT_CLASS (klass),
PROP_CONFIG_INTERVAL,
g_param_spec_uint ("config-interval",
g_param_spec_int ("config-interval",
"VPS SPS PPS Send Interval",
"Send VPS, SPS and PPS Insertion Interval in seconds (sprop parameter sets "
"will be multiplexed in the data stream when detected.) (0 = disabled)",
0, 3600, DEFAULT_CONFIG_INTERVAL,
-1, 3600, DEFAULT_CONFIG_INTERVAL,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)
);
......@@ -1466,7 +1466,7 @@ gst_rtp_h265_pay_set_property (GObject * object, guint prop_id,
rtph265pay->update_caps = TRUE;
break;
case PROP_CONFIG_INTERVAL:
rtph265pay->vps_sps_pps_interval = g_value_get_uint (value);
rtph265pay->vps_sps_pps_interval = g_value_get_int (value);
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
......@@ -1487,7 +1487,7 @@ gst_rtp_h265_pay_get_property (GObject * object, guint prop_id,
g_value_set_string (value, rtph265pay->sprop_parameter_sets);
break;
case PROP_CONFIG_INTERVAL:
g_value_set_uint (value, rtph265pay->vps_sps_pps_interval);
g_value_set_int (value, rtph265pay->vps_sps_pps_interval);
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
......
......@@ -64,7 +64,7 @@ struct _GstRtpH265Pay
GstAdapter *adapter;
guint vps_sps_pps_interval;
gint vps_sps_pps_interval;
gboolean send_vps_sps_pps;
GstClockTime last_vps_sps_pps;
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment