... with fixing typo (g_strup -> g_strdup)
Constness needs to be explicit in C++ world otherwise compiler
would complain about that.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1164>
gst_mf_transform_event_type_to_string (MediaEventType event)
{
switch (event) {
gst_mf_transform_event_type_to_string (MediaEventType event)
{
switch (event) {
IsEqualGUID (guid, MF_MT_MINIMUM_DISPLAY_APERTURE) ||
IsEqualGUID (guid, MF_MT_PAN_SCAN_APERTURE)) {
/* FIXME: Not our usecase for now */
IsEqualGUID (guid, MF_MT_MINIMUM_DISPLAY_APERTURE) ||
IsEqualGUID (guid, MF_MT_PAN_SCAN_APERTURE)) {
/* FIXME: Not our usecase for now */
- return g_strup ("Not parsed");
+ return g_strdup ("Not parsed");
{0, NULL},
};
GstMFVideoEncProfileMap *profile_to_check = NULL;
{0, NULL},
};
GstMFVideoEncProfileMap *profile_to_check = NULL;
- static gchar *h264_caps_str =
+ static const gchar *h264_caps_str =
"video/x-h264, stream-format=(string) byte-stream, alignment=(string) au";
"video/x-h264, stream-format=(string) byte-stream, alignment=(string) au";
- static gchar *hevc_caps_str =
+ static const gchar *hevc_caps_str =
"video/x-h265, stream-format=(string) byte-stream, alignment=(string) au";
"video/x-h265, stream-format=(string) byte-stream, alignment=(string) au";
- static gchar *vp9_caps_str = "video/x-vp9";
- static gchar *codec_caps_str = NULL;
+ static const gchar *vp9_caps_str = "video/x-vp9";
+ const gchar *codec_caps_str = NULL;
/* NOTE: depending on environment,
* some enumerated h/w MFT might not be usable (e.g., multiple GPU case) */
/* NOTE: depending on environment,
* some enumerated h/w MFT might not be usable (e.g., multiple GPU case) */
GstMFVideoEncClassData *cdata;
gboolean is_default = TRUE;
gchar *device_name = NULL;
GstMFVideoEncClassData *cdata;
gboolean is_default = TRUE;
gchar *device_name = NULL;
- static gchar *type_name_prefix = NULL;
- static gchar *feature_name_prefix = NULL;
+ const gchar *type_name_prefix = NULL;
+ const gchar *feature_name_prefix = NULL;
if (IsEqualGUID (MFVideoFormat_H264, *subtype)) {
type_name_prefix = "H264";
if (IsEqualGUID (MFVideoFormat_H264, *subtype)) {
type_name_prefix = "H264";