mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +00:00
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
This commit is contained in:
parent
b7a0be23c6
commit
31a7ad77b6
2 changed files with 5 additions and 5 deletions
|
@ -159,11 +159,11 @@ gst_rtp_h265_pay_class_init (GstRtpH265PayClass * klass)
|
||||||
|
|
||||||
g_object_class_install_property (G_OBJECT_CLASS (klass),
|
g_object_class_install_property (G_OBJECT_CLASS (klass),
|
||||||
PROP_CONFIG_INTERVAL,
|
PROP_CONFIG_INTERVAL,
|
||||||
g_param_spec_uint ("config-interval",
|
g_param_spec_int ("config-interval",
|
||||||
"VPS SPS PPS Send Interval",
|
"VPS SPS PPS Send Interval",
|
||||||
"Send VPS, SPS and PPS Insertion Interval in seconds (sprop parameter sets "
|
"Send VPS, SPS and PPS Insertion Interval in seconds (sprop parameter sets "
|
||||||
"will be multiplexed in the data stream when detected.) (0 = disabled)",
|
"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)
|
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;
|
rtph265pay->update_caps = TRUE;
|
||||||
break;
|
break;
|
||||||
case PROP_CONFIG_INTERVAL:
|
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;
|
break;
|
||||||
default:
|
default:
|
||||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
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);
|
g_value_set_string (value, rtph265pay->sprop_parameter_sets);
|
||||||
break;
|
break;
|
||||||
case PROP_CONFIG_INTERVAL:
|
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;
|
break;
|
||||||
default:
|
default:
|
||||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
||||||
|
|
|
@ -64,7 +64,7 @@ struct _GstRtpH265Pay
|
||||||
|
|
||||||
GstAdapter *adapter;
|
GstAdapter *adapter;
|
||||||
|
|
||||||
guint vps_sps_pps_interval;
|
gint vps_sps_pps_interval;
|
||||||
gboolean send_vps_sps_pps;
|
gboolean send_vps_sps_pps;
|
||||||
GstClockTime last_vps_sps_pps;
|
GstClockTime last_vps_sps_pps;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue