summaryrefslogtreecommitdiff
path: root/omx/gstomxh264enc.c
diff options
context:
space:
mode:
authorJan Schmidt <jan@centricular.com>2017-07-13 16:40:26 +1000
committerJan Schmidt <jan@centricular.com>2017-07-13 16:42:24 +1000
commitfe9cdb9b19cecab8c779ee1d207b3fd70d72f3d7 (patch)
tree98ba05f8f99e1fd1b341cd4fe1a53dfce24d63c8 /omx/gstomxh264enc.c
parent2034b26347bd3bbb330d90d8495c2685a3849af1 (diff)
downloadgst-omx-fe9cdb9b19cecab8c779ee1d207b3fd70d72f3d7.tar.gz
omxh264enc: Re-add periodicty-idr property for backward compat
Retain backwards compatibility by adding a duplicate property for periodicty-idr https://bugzilla.gnome.org/show_bug.cgi?id=784370
Diffstat (limited to 'omx/gstomxh264enc.c')
-rw-r--r--omx/gstomxh264enc.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/omx/gstomxh264enc.c b/omx/gstomxh264enc.c
index 7c026f0..cebb8c5 100644
--- a/omx/gstomxh264enc.c
+++ b/omx/gstomxh264enc.c
@@ -56,6 +56,7 @@ enum
PROP_INLINESPSPPSHEADERS,
#endif
PROP_PERIODICITYOFIDRFRAMES,
+ PROP_PERIODICITYOFIDRFRAMES_COMPAT,
PROP_INTERVALOFCODINGINTRAFRAMES,
PROP_B_FRAMES,
};
@@ -111,6 +112,15 @@ gst_omx_h264_enc_class_init (GstOMXH264EncClass * klass)
GST_PARAM_MUTABLE_READY));
g_object_class_install_property (gobject_class,
+ PROP_PERIODICITYOFIDRFRAMES_COMPAT, g_param_spec_uint ("periodicty-idr",
+ "IDR periodicity",
+ "Periodicity of IDR frames (0xffffffff=component default) DEPRECATED - only for backwards compat",
+ 0, G_MAXUINT,
+ GST_OMX_H264_VIDEO_ENC_PERIODICITY_OF_IDR_FRAMES_DEFAULT,
+ G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS |
+ GST_PARAM_MUTABLE_READY));
+
+ g_object_class_install_property (gobject_class,
PROP_INTERVALOFCODINGINTRAFRAMES,
g_param_spec_uint ("interval-intraframes",
"Interval of coding Intra frames",
@@ -157,6 +167,7 @@ gst_omx_h264_enc_set_property (GObject * object, guint prop_id,
break;
#endif
case PROP_PERIODICITYOFIDRFRAMES:
+ case PROP_PERIODICITYOFIDRFRAMES_COMPAT:
self->periodicty_idr = g_value_get_uint (value);
break;
case PROP_INTERVALOFCODINGINTRAFRAMES:
@@ -184,6 +195,7 @@ gst_omx_h264_enc_get_property (GObject * object, guint prop_id, GValue * value,
break;
#endif
case PROP_PERIODICITYOFIDRFRAMES:
+ case PROP_PERIODICITYOFIDRFRAMES_COMPAT:
g_value_set_uint (value, self->periodicty_idr);
break;
case PROP_INTERVALOFCODINGINTRAFRAMES: