summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMats Lindestam <matslm@axis.com>2016-05-25 11:54:55 +0200
committerTim-Philipp Müller <tim@centricular.com>2016-06-13 10:08:22 +0100
commit0c04e004bbd976c8c58b5b3528011e293bfaa34c (patch)
treeab388875115bb6d5b6a96912413c646cf11f4597
parenta913a0b9679dd58945ad105d240db45595fdaba6 (diff)
h264parse: change "config-interval" property type from uint to int
So we can use -1 as special value like in rtph264pay. https://bugzilla.gnome.org/show_bug.cgi?id=766803
-rw-r--r--gst/videoparsers/gsth264parse.c6
-rw-r--r--gst/videoparsers/gsth264parse.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/gst/videoparsers/gsth264parse.c b/gst/videoparsers/gsth264parse.c
index a75c0f7c0..e25dba8fe 100644
--- a/gst/videoparsers/gsth264parse.c
+++ b/gst/videoparsers/gsth264parse.c
@@ -129,7 +129,7 @@ gst_h264_parse_class_init (GstH264ParseClass * klass)
gobject_class->get_property = gst_h264_parse_get_property;
g_object_class_install_property (gobject_class, PROP_CONFIG_INTERVAL,
- g_param_spec_uint ("config-interval",
+ g_param_spec_int ("config-interval",
"SPS PPS Send Interval",
"Send SPS and PPS Insertion Interval in seconds (sprop parameter sets "
"will be multiplexed in the data stream when detected.) (0 = disabled)",
@@ -2799,7 +2799,7 @@ gst_h264_parse_set_property (GObject * object, guint prop_id,
switch (prop_id) {
case PROP_CONFIG_INTERVAL:
- parse->interval = g_value_get_uint (value);
+ parse->interval = g_value_get_int (value);
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
@@ -2817,7 +2817,7 @@ gst_h264_parse_get_property (GObject * object, guint prop_id,
switch (prop_id) {
case PROP_CONFIG_INTERVAL:
- g_value_set_uint (value, parse->interval);
+ g_value_set_int (value, parse->interval);
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
diff --git a/gst/videoparsers/gsth264parse.h b/gst/videoparsers/gsth264parse.h
index 58d818cbc..f3eb7a5cb 100644
--- a/gst/videoparsers/gsth264parse.h
+++ b/gst/videoparsers/gsth264parse.h
@@ -118,7 +118,7 @@ struct _GstH264Parse
gboolean picture_start;
/* props */
- guint interval;
+ gint interval;
GstClockTime pending_key_unit_ts;
GstEvent *force_key_unit_event;