diff --git a/subprojects/gst-plugins-good/docs/gst_plugins_cache.json b/subprojects/gst-plugins-good/docs/gst_plugins_cache.json index c1249c438d..4d9878f831 100644 --- a/subprojects/gst-plugins-good/docs/gst_plugins_cache.json +++ b/subprojects/gst-plugins-good/docs/gst_plugins_cache.json @@ -16912,6 +16912,20 @@ } }, "properties": { + "picture-id": { + "blurb": "Currently used picture-id for payloading", + "conditionally-available": false, + "construct": false, + "construct-only": false, + "controllable": false, + "default": "0", + "max": "32767", + "min": "0", + "mutable": "null", + "readable": true, + "type": "gint", + "writable": false + }, "picture-id-mode": { "blurb": "The picture ID mode for payloading", "conditionally-available": false, @@ -17020,6 +17034,20 @@ } }, "properties": { + "picture-id": { + "blurb": "Currently used picture-id for payloading", + "conditionally-available": false, + "construct": false, + "construct-only": false, + "controllable": false, + "default": "0", + "max": "32767", + "min": "0", + "mutable": "null", + "readable": true, + "type": "gint", + "writable": false + }, "picture-id-mode": { "blurb": "The picture ID mode for payloading", "conditionally-available": false, diff --git a/subprojects/gst-plugins-good/gst/rtp/gstrtpvp8pay.c b/subprojects/gst-plugins-good/gst/rtp/gstrtpvp8pay.c index 99e9d7774c..ede2deb464 100644 --- a/subprojects/gst-plugins-good/gst/rtp/gstrtpvp8pay.c +++ b/subprojects/gst-plugins-good/gst/rtp/gstrtpvp8pay.c @@ -45,6 +45,7 @@ GST_DEBUG_CATEGORY_STATIC (gst_rtp_vp8_pay_debug); enum { PROP_0, + PROP_PICTURE_ID, PROP_PICTURE_ID_MODE, PROP_PICTURE_ID_OFFSET }; @@ -167,11 +168,24 @@ gst_rtp_vp8_pay_class_init (GstRtpVP8PayClass * gst_rtp_vp8_pay_class) gobject_class->set_property = gst_rtp_vp8_pay_set_property; gobject_class->get_property = gst_rtp_vp8_pay_get_property; + /** + * rtpvp8pay:picture-id: + * + * Currently used picture-id + * + * Since: 1.24 + */ + g_object_class_install_property (gobject_class, PROP_PICTURE_ID, + g_param_spec_int ("picture-id", "Picture ID", + "Currently used picture-id for payloading", 0, 0x7FFF, 0, + G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); + g_object_class_install_property (gobject_class, PROP_PICTURE_ID_MODE, g_param_spec_enum ("picture-id-mode", "Picture ID Mode", "The picture ID mode for payloading", GST_TYPE_RTP_VP8_PAY_PICTURE_ID_MODE, DEFAULT_PICTURE_ID_MODE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** * rtpvp8pay:picture-id-offset: * @@ -232,6 +246,9 @@ gst_rtp_vp8_pay_get_property (GObject * object, GstRtpVP8Pay *rtpvp8pay = GST_RTP_VP8_PAY (object); switch (prop_id) { + case PROP_PICTURE_ID: + g_value_set_int (value, rtpvp8pay->picture_id); + break; case PROP_PICTURE_ID_MODE: g_value_set_enum (value, rtpvp8pay->picture_id_mode); break; diff --git a/subprojects/gst-plugins-good/gst/rtp/gstrtpvp9pay.c b/subprojects/gst-plugins-good/gst/rtp/gstrtpvp9pay.c index 87b2c5834a..f981f1ee01 100644 --- a/subprojects/gst-plugins-good/gst/rtp/gstrtpvp9pay.c +++ b/subprojects/gst-plugins-good/gst/rtp/gstrtpvp9pay.c @@ -46,6 +46,7 @@ GST_DEBUG_CATEGORY_STATIC (gst_rtp_vp9_pay_debug); enum { PROP_0, + PROP_PICTURE_ID, PROP_PICTURE_ID_MODE, PROP_PICTURE_ID_OFFSET, }; @@ -149,6 +150,18 @@ gst_rtp_vp9_pay_class_init (GstRtpVP9PayClass * gst_rtp_vp9_pay_class) gobject_class->set_property = gst_rtp_vp9_pay_set_property; gobject_class->get_property = gst_rtp_vp9_pay_get_property; + /** + * rtpvp9pay:picture-id: + * + * Currently used picture-id + * + * Since: 1.24 + */ + g_object_class_install_property (gobject_class, PROP_PICTURE_ID, + g_param_spec_int ("picture-id", "Picture ID", + "Currently used picture-id for payloading", 0, 0x7FFF, 0, + G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); + g_object_class_install_property (gobject_class, PROP_PICTURE_ID_MODE, g_param_spec_enum ("picture-id-mode", "Picture ID Mode", "The picture ID mode for payloading", @@ -215,6 +228,9 @@ gst_rtp_vp9_pay_get_property (GObject * object, GstRtpVP9Pay *rtpvp9pay = GST_RTP_VP9_PAY (object); switch (prop_id) { + case PROP_PICTURE_ID: + g_value_set_int (value, rtpvp9pay->picture_id); + break; case PROP_PICTURE_ID_MODE: g_value_set_enum (value, rtpvp9pay->picture_id_mode); break;