summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBing Song <bing.song@nxp.com>2021-01-14 01:12:06 +0800
committerTim-Philipp Müller <tim@centricular.com>2021-01-28 17:56:13 +0000
commit5486a60e245493190b5b3feda1839f55a5c0e011 (patch)
tree2827a8356e34857d12f66e134f1902738aba4b03
parentb53aa3470ff54ab3d2abde942015d322b1eb7d4a (diff)
downloadgstreamer-plugins-good-5486a60e245493190b5b3feda1839f55a5c0e011.tar.gz
v4l2h265codec: fix HEVC profile string issue.
Keep HEVC profile compatible with other module. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/864>
-rw-r--r--sys/v4l2/gstv4l2h265codec.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/v4l2/gstv4l2h265codec.c b/sys/v4l2/gstv4l2h265codec.c
index 7186da8cd..df7c2a7b6 100644
--- a/sys/v4l2/gstv4l2h265codec.c
+++ b/sys/v4l2/gstv4l2h265codec.c
@@ -37,9 +37,9 @@ v4l2_profile_from_string (const gchar * profile)
if (g_str_equal (profile, "main")) {
v4l2_profile = V4L2_MPEG_VIDEO_HEVC_PROFILE_MAIN;
- } else if (g_str_equal (profile, "mainstillpicture")) {
+ } else if (g_str_equal (profile, "main-still-picture")) {
v4l2_profile = V4L2_MPEG_VIDEO_HEVC_PROFILE_MAIN_STILL_PICTURE;
- } else if (g_str_equal (profile, "main10")) {
+ } else if (g_str_equal (profile, "main-10")) {
v4l2_profile = V4L2_MPEG_VIDEO_HEVC_PROFILE_MAIN_10;
} else {
GST_WARNING ("Unsupported profile string '%s'", profile);
@@ -55,9 +55,9 @@ v4l2_profile_to_string (gint v4l2_profile)
case V4L2_MPEG_VIDEO_HEVC_PROFILE_MAIN:
return "main";
case V4L2_MPEG_VIDEO_HEVC_PROFILE_MAIN_STILL_PICTURE:
- return "mainstillpicture";
+ return "main-still-picture";
case V4L2_MPEG_VIDEO_HEVC_PROFILE_MAIN_10:
- return "main10";
+ return "main-10";
default:
GST_WARNING ("Unsupported V4L2 profile %i", v4l2_profile);
break;