]> git.sesse.net Git - vlc/commitdiff
Fix invalid comparison, result was always false.
authorJean-Paul Saman <jpsaman@videolan.org>
Sat, 21 Oct 2006 12:43:36 +0000 (12:43 +0000)
committerJean-Paul Saman <jpsaman@videolan.org>
Sat, 21 Oct 2006 12:43:36 +0000 (12:43 +0000)
modules/demux/nsc.c

index 6bb9b6c4f9ccc3243389b12ec0dbc185b1689644..fb61a8a5373d68e24b3296afb77d31ee0632a3a7 100644 (file)
@@ -246,7 +246,7 @@ char *nscdec( vlc_object_t *p_demux, char* p_encoded )
     p_buf8 = buf8;
     p_buf16 = (const char *)buf16;
 
-    if( vlc_iconv( conv, &p_buf16, &buf16_size, &p_buf8, &buf8_size ) < 0 )
+    if( vlc_iconv( conv, &p_buf16, &buf16_size, &p_buf8, &buf8_size ) == 0 )
     {
         msg_Err( p_demux, "iconv failed" );
         return NULL;