diff --git a/subprojects/gst-plugins-bad/sys/va/gstvabaseenc.c b/subprojects/gst-plugins-bad/sys/va/gstvabaseenc.c index 025e9811d7..258c4f22d4 100644 --- a/subprojects/gst-plugins-bad/sys/va/gstvabaseenc.c +++ b/subprojects/gst-plugins-bad/sys/va/gstvabaseenc.c @@ -1194,7 +1194,9 @@ gst_va_base_enc_add_codec_tag (GstVaBaseEnc * base, const gchar * codec_name) const gchar *encoder_name; guint bitrate = 0; - g_object_get (venc, "bitrate", &bitrate, NULL); + if (g_object_class_find_property (G_OBJECT_GET_CLASS (base), "bitrate")) + g_object_get (venc, "bitrate", &bitrate, NULL); + if (bitrate > 0) gst_tag_list_add (tags, GST_TAG_MERGE_REPLACE, GST_TAG_NOMINAL_BITRATE, bitrate, NULL);