]> git.sesse.net Git - vlc/commitdiff
bluray: shut down a warning
authorJean-Baptiste Kempf <jb@videolan.org>
Mon, 10 Feb 2014 15:12:20 +0000 (16:12 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Mon, 10 Feb 2014 15:12:20 +0000 (16:12 +0100)
modules/access/bluray.c

index 5d469cea79801311a302b3fb55507b3d26a08a3b..bc4c8e9a1b115973f9d18ddf043c96fc8dd59029 100644 (file)
@@ -516,7 +516,7 @@ static void setStreamLang(es_format_t *p_fmt,
     for (int i = 0; i < i_stream_count; i++) {
         if (p_fmt->i_id == p_streams[i].pid) {
             free(p_fmt->psz_language);
-            p_fmt->psz_language = strndup(p_streams[i].lang, 3);
+            p_fmt->psz_language = strndup((const char *)p_streams[i].lang, 3);
             return;
         }
     }