diff --git a/subprojects/gst-plugins-bad/sys/qsv/gstqsvdecoder.cpp b/subprojects/gst-plugins-bad/sys/qsv/gstqsvdecoder.cpp index e8044f3633..10f3eae201 100644 --- a/subprojects/gst-plugins-bad/sys/qsv/gstqsvdecoder.cpp +++ b/subprojects/gst-plugins-bad/sys/qsv/gstqsvdecoder.cpp @@ -149,6 +149,9 @@ gst_qsv_decoder_class_init (GstQsvDecoderClass * klass) GObjectClass *object_class = G_OBJECT_CLASS (klass); GstElementClass *element_class = GST_ELEMENT_CLASS (klass); GstVideoDecoderClass *videodec_class = GST_VIDEO_DECODER_CLASS (klass); + GParamFlags param_flags = (GParamFlags) (GST_PARAM_DOC_SHOW_DEFAULT | + GST_PARAM_CONDITIONALLY_AVAILABLE | G_PARAM_READABLE | + G_PARAM_STATIC_STRINGS); object_class->get_property = gst_qsv_decoder_get_property; object_class->dispose = gst_qsv_decoder_dispose; @@ -158,15 +161,11 @@ gst_qsv_decoder_class_init (GstQsvDecoderClass * klass) g_object_class_install_property (object_class, PROP_ADAPTER_LUID, g_param_spec_int64 ("adapter-luid", "Adapter LUID", "DXGI Adapter LUID (Locally Unique Identifier) of created device", - G_MININT64, G_MAXINT64, 0, - (GParamFlags) (GST_PARAM_CONDITIONALLY_AVAILABLE | G_PARAM_READABLE | - G_PARAM_STATIC_STRINGS))); + G_MININT64, G_MAXINT64, 0, param_flags)); #else g_object_class_install_property (object_class, PROP_DEVICE_PATH, g_param_spec_string ("device-path", "Device Path", - "DRM device path", nullptr, - (GParamFlags) (GST_PARAM_CONDITIONALLY_AVAILABLE | - G_PARAM_READABLE | G_PARAM_STATIC_STRINGS))); + "DRM device path", nullptr, param_flags)); #endif element_class->set_context = GST_DEBUG_FUNCPTR (gst_qsv_decoder_set_context); diff --git a/subprojects/gst-plugins-bad/sys/qsv/gstqsvencoder.cpp b/subprojects/gst-plugins-bad/sys/qsv/gstqsvencoder.cpp index 004f16d84e..d22a678073 100644 --- a/subprojects/gst-plugins-bad/sys/qsv/gstqsvencoder.cpp +++ b/subprojects/gst-plugins-bad/sys/qsv/gstqsvencoder.cpp @@ -200,6 +200,9 @@ gst_qsv_encoder_class_init (GstQsvEncoderClass * klass) GObjectClass *object_class = G_OBJECT_CLASS (klass); GstElementClass *element_class = GST_ELEMENT_CLASS (klass); GstVideoEncoderClass *videoenc_class = GST_VIDEO_ENCODER_CLASS (klass); + GParamFlags param_flags = (GParamFlags) (GST_PARAM_DOC_SHOW_DEFAULT | + GST_PARAM_CONDITIONALLY_AVAILABLE | G_PARAM_READABLE | + G_PARAM_STATIC_STRINGS); object_class->dispose = gst_qsv_encoder_dispose; object_class->finalize = gst_qsv_encoder_finalize; @@ -210,15 +213,11 @@ gst_qsv_encoder_class_init (GstQsvEncoderClass * klass) g_object_class_install_property (object_class, PROP_ADAPTER_LUID, g_param_spec_int64 ("adapter-luid", "Adapter LUID", "DXGI Adapter LUID (Locally Unique Identifier) of created device", - G_MININT64, G_MAXINT64, 0, - (GParamFlags) (GST_PARAM_CONDITIONALLY_AVAILABLE | G_PARAM_READABLE | - G_PARAM_STATIC_STRINGS))); + G_MININT64, G_MAXINT64, 0, param_flags)); #else g_object_class_install_property (object_class, PROP_DEVICE_PATH, g_param_spec_string ("device-path", "Device Path", - "DRM device path", NULL, - (GParamFlags) (GST_PARAM_CONDITIONALLY_AVAILABLE | - G_PARAM_READABLE | G_PARAM_STATIC_STRINGS))); + "DRM device path", nullptr, param_flags)); #endif g_object_class_install_property (object_class, PROP_TARGET_USAGE,