mpegtsmux: effectively check if there is a language

'language' is an array and not a pointer.

CID 1358835
This commit is contained in:
Thiago Santos 2016-04-29 17:19:19 -03:00
parent 7acb1a35cb
commit 1b1beded51

View file

@ -737,7 +737,7 @@ tsmux_stream_get_es_descrs (TsMuxStream * stream,
g_return_if_fail (stream != NULL); g_return_if_fail (stream != NULL);
g_return_if_fail (pmt_stream != NULL); g_return_if_fail (pmt_stream != NULL);
if (stream->is_audio && stream->language) { if (stream->is_audio && stream->language[0] != '\0') {
descriptor = gst_mpegts_descriptor_from_iso_639_language (stream->language); descriptor = gst_mpegts_descriptor_from_iso_639_language (stream->language);
g_ptr_array_add (pmt_stream->descriptors, descriptor); g_ptr_array_add (pmt_stream->descriptors, descriptor);
descriptor = NULL; descriptor = NULL;