]> git.sesse.net Git - vlc/commitdiff
vobsub.c: Don't break autodetection of non-vobsub subtitles
authorSigmund Augdal Helberg <sigmunau@videolan.org>
Sat, 9 Oct 2004 22:18:25 +0000 (22:18 +0000)
committerSigmund Augdal Helberg <sigmunau@videolan.org>
Sat, 9 Oct 2004 22:18:25 +0000 (22:18 +0000)
modules/demux/vobsub.c

index a6decdc07dffa938dfdfeb2f3f1000d1de416d96..40f73d154aaec2a8d1aeaada29bfefeb946b9da7 100644 (file)
@@ -122,14 +122,14 @@ static int Open ( vlc_object_t *p_this )
         {
             msg_Dbg( p_demux, "this doesn't seem to be a vobsub file" );
             free( s );
+            if( stream_Seek( p_demux->s, 0 ) )
+            {
+                msg_Warn( p_demux, "failed to rewind" );
+            }
             return VLC_EGENERIC;
         }
         free( s );
 
-        if( stream_Seek( p_demux->s, 0 ) )
-        {
-            msg_Warn( p_demux, "failed to rewind" );
-        }
     }
     else
     {