summaryrefslogtreecommitdiff
path: root/gst/mpegtsmux/tsmux
diff options
context:
space:
mode:
authorThiago Santos <thiagoss@osg.samsung.com>2016-04-29 17:19:19 -0300
committerThiago Santos <thiagoss@osg.samsung.com>2016-04-29 17:19:19 -0300
commit1b1beded5176f0fb217d3a8492c3560c80043468 (patch)
treea4297296ed9935f200904d4177466fa8870c8ddf /gst/mpegtsmux/tsmux
parent7acb1a35cbd0041620109f0486b3c4a101bd57dc (diff)
downloadgstreamer-plugins-bad-1b1beded5176f0fb217d3a8492c3560c80043468.tar.gz
mpegtsmux: effectively check if there is a language
'language' is an array and not a pointer. CID 1358835
Diffstat (limited to 'gst/mpegtsmux/tsmux')
-rw-r--r--gst/mpegtsmux/tsmux/tsmuxstream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/mpegtsmux/tsmux/tsmuxstream.c b/gst/mpegtsmux/tsmux/tsmuxstream.c
index 48879074c..f719d8f3f 100644
--- a/gst/mpegtsmux/tsmux/tsmuxstream.c
+++ b/gst/mpegtsmux/tsmux/tsmuxstream.c
@@ -737,7 +737,7 @@ tsmux_stream_get_es_descrs (TsMuxStream * stream,
g_return_if_fail (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);
g_ptr_array_add (pmt_stream->descriptors, descriptor);
descriptor = NULL;