From 64ca3b26d97482a9303305185a86782813631b26 Mon Sep 17 00:00:00 2001 From: Luis de Bethencourt Date: Fri, 15 Jan 2016 15:19:41 +0000 Subject: [PATCH] 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 --- gst/rtp/gstrtph265pay.c | 8 ++++---- 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 b17b091..d72feb0 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 8382c5e..a3fa692 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; }; -- 2.7.4