mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-02 08:42:32 +00:00
encoding-target: Remove useless check for local presence
This commit is contained in:
parent
7f76713835
commit
646e0499fb
1 changed files with 7 additions and 16 deletions
|
@ -526,7 +526,8 @@ parse_encoding_profile (GKeyFile * in, gchar * parentprofilename,
|
||||||
{
|
{
|
||||||
GstEncodingProfile *sprof = NULL;
|
GstEncodingProfile *sprof = NULL;
|
||||||
gchar **parent;
|
gchar **parent;
|
||||||
gchar *proftype, *format, *preset, *restriction, *pname, *description;
|
gchar *proftype, *format, *preset, *restriction, *pname, *description,
|
||||||
|
*locale;
|
||||||
GstCaps *formatcaps = NULL;
|
GstCaps *formatcaps = NULL;
|
||||||
GstCaps *restrictioncaps = NULL;
|
GstCaps *restrictioncaps = NULL;
|
||||||
gboolean variableframerate;
|
gboolean variableframerate;
|
||||||
|
@ -564,21 +565,11 @@ parse_encoding_profile (GKeyFile * in, gchar * parentprofilename,
|
||||||
|
|
||||||
pname = g_key_file_get_value (in, profilename, "name", NULL);
|
pname = g_key_file_get_value (in, profilename, "name", NULL);
|
||||||
|
|
||||||
/* First try to get localized description */
|
locale = get_locale ();
|
||||||
{
|
/* will try to fall back to untranslated string if no translation found */
|
||||||
gchar *locale;
|
description = g_key_file_get_locale_string (in, profilename,
|
||||||
|
"description", locale, NULL);
|
||||||
locale = get_locale ();
|
g_free (locale);
|
||||||
if (locale != NULL) {
|
|
||||||
/* will try to fall back to untranslated string if no translation found */
|
|
||||||
description = g_key_file_get_locale_string (in, profilename,
|
|
||||||
"description", locale, NULL);
|
|
||||||
g_free (locale);
|
|
||||||
} else {
|
|
||||||
description =
|
|
||||||
g_key_file_get_string (in, profilename, "description", NULL);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Note: a missing description is normal for non-container profiles */
|
/* Note: a missing description is normal for non-container profiles */
|
||||||
if (description == NULL) {
|
if (description == NULL) {
|
||||||
|
|
Loading…
Reference in a new issue