mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-26 10:10:32 +00:00
pbutils: description: Make static strings static
Otherwise, they're not guaranteed to still be valid when leaving the scope. https://bugzilla.gnome.org/show_bug.cgi?id=673976
This commit is contained in:
parent
980f5e17e9
commit
6046421ecc
1 changed files with 5 additions and 4 deletions
|
@ -351,7 +351,8 @@ pbutils_desc_get_profile_name_from_nick (const gchar * map, gsize map_len,
|
|||
static const gchar *
|
||||
pbutils_desc_get_mpeg2v_profile_name_from_nick (const gchar * nick)
|
||||
{
|
||||
const gchar map[] = "simple\000Simple\000main\000Main\000high\000High\000";
|
||||
static const gchar map[] =
|
||||
"simple\000Simple\000main\000Main\000high\000High\000";
|
||||
|
||||
return pbutils_desc_get_profile_name_from_nick (map, sizeof (map), nick);
|
||||
}
|
||||
|
@ -359,7 +360,7 @@ pbutils_desc_get_mpeg2v_profile_name_from_nick (const gchar * nick)
|
|||
static const gchar *
|
||||
pbutils_desc_get_mpeg4v_profile_name_from_nick (const gchar * nick)
|
||||
{
|
||||
const gchar map[] = "simple\000Simple\000"
|
||||
static const gchar map[] = "simple\000Simple\000"
|
||||
"simple-scalable\000Simple Scalable\000"
|
||||
"core\000Core\000"
|
||||
"main\000Main\000"
|
||||
|
@ -386,7 +387,7 @@ pbutils_desc_get_mpeg4v_profile_name_from_nick (const gchar * nick)
|
|||
static const gchar *
|
||||
pbutils_desc_get_h264_profile_name_from_nick (const gchar * nick)
|
||||
{
|
||||
const gchar map[] = "baseline\000Baseline\000"
|
||||
static const gchar map[] = "baseline\000Baseline\000"
|
||||
"constrained-baseline\000Constrained Baseline\000"
|
||||
"main\000Main\000"
|
||||
"extended\000Extended\000"
|
||||
|
@ -410,7 +411,7 @@ pbutils_desc_get_h264_profile_name_from_nick (const gchar * nick)
|
|||
static const gchar *
|
||||
pbutils_desc_get_h265_profile_name_from_nick (const gchar * nick)
|
||||
{
|
||||
const gchar map[] = "main\000Main\000"
|
||||
static const gchar map[] = "main\000Main\000"
|
||||
"main-10\000Main 10\000"
|
||||
"main-12\000Main 12\000"
|
||||
"main-4:2:2-10\000Main 4:2:2 10\000"
|
||||
|
|
Loading…
Reference in a new issue