diff options
author | Luis de Bethencourt <luisbg@osg.samsung.com> | 2016-01-15 15:19:41 +0000 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2016-02-16 00:24:41 +0000 |
commit | 64ca3b26d97482a9303305185a86782813631b26 (patch) | |
tree | 2de99949f749b7887e3888dd7304f04f82cc74f3 | |
parent | 698e5bbfb59f4b88da05aa32b992607a8dd5b9ea (diff) | |
download | gstreamer-plugins-good-64ca3b26d97482a9303305185a86782813631b26.tar.gz |
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
-rw-r--r-- | gst/rtp/gstrtph265pay.c | 8 | ||||
-rw-r--r-- | gst/rtp/gstrtph265pay.h | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/gst/rtp/gstrtph265pay.c b/gst/rtp/gstrtph265pay.c index b17b09161..d72feb0f6 100644 --- a/gst/rtp/gstrtph265pay.c +++ b/gst/rtp/gstrtph265pay.c @@ -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); diff --git a/gst/rtp/gstrtph265pay.h b/gst/rtp/gstrtph265pay.h index 8382c5ebe..a3fa692ba 100644 --- a/gst/rtp/gstrtph265pay.h +++ b/gst/rtp/gstrtph265pay.h @@ -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; }; |