changeset 11268:c367751bd7cb

10! someone please tell me how subs ever worked with mkv
author attila
date Sun, 26 Oct 2003 12:28:45 +0000
parents bce074f4263f
children 669e67c3d6b3
files libmpdemux/demux_mkv.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_mkv.cpp	Sun Oct 26 11:23:37 2003 +0000
+++ b/libmpdemux/demux_mkv.cpp	Sun Oct 26 12:28:45 2003 +0000
@@ -2357,10 +2357,10 @@
                                                     sizeof(mkv_sh_sub_t));
       demuxer->sub->id = track->xid;
 
-    } else if (strcmp(track->codec_id, MKV_S_TEXTASCII) &&
+    } else if (!(strcmp(track->codec_id, MKV_S_TEXTASCII) &&
                strcmp(track->codec_id, MKV_S_TEXTUTF8) && 
                strcmp(track->codec_id, MKV_S_TEXTSSA) &&
-               strcmp(track->codec_id, "S_SSA"))
+               strcmp(track->codec_id, "S_SSA")))
       mp_msg(MSGT_DEMUX, MSGL_ERR, "[mkv] Subtitle type '%s' is not "
              "supported. Track will not be displayed.\n", track->codec_id);
     else {