gstreamer playback, avoid segfault

Origin commit data
------------------
Branch: master
Commit: 28aa5147c6
Author: TangoCash <eric@loxat.de>
Date: 2017-11-03 (Fri, 03 Nov 2017)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
TangoCash
2017-11-03 22:35:08 +01:00
parent 8ce1bebc78
commit 9bf624187d
2 changed files with 2 additions and 2 deletions

View File

@@ -942,7 +942,7 @@ void cPlayback::FindAllPids(int *apids, unsigned int *ac3flags, unsigned int *nu
if (gst_tag_list_get_string(tags, GST_TAG_LANGUAGE_CODE, &g_lang))
{
std::string slang;
if (gst_tag_get_language_name(g_lang) != NULL)
if (gst_tag_check_language_code(g_lang))
slang = gst_tag_get_language_name(g_lang);
else
slang = g_lang;

View File

@@ -949,7 +949,7 @@ void cPlayback::FindAllPids(int *apids, unsigned int *ac3flags, unsigned int *nu
if (gst_tag_list_get_string(tags, GST_TAG_LANGUAGE_CODE, &g_lang))
{
std::string slang;
if (gst_tag_get_language_name(g_lang) != NULL)
if (gst_tag_check_language_code(g_lang))
slang = gst_tag_get_language_name(g_lang);
else
slang = g_lang;