dvb/tstools.cpp: fix openFile without streaminfo
authorghost <andreas.monzner@multimedia-labs.de>
Fri, 26 Nov 2010 18:12:13 +0000 (19:12 +0100)
committerghost <andreas.monzner@multimedia-labs.de>
Fri, 26 Nov 2010 18:12:13 +0000 (19:12 +0100)
this fixes slow movielist
refs #615

lib/dvb/tstools.cpp

index cfea3fd..1403059 100644 (file)
@@ -40,7 +40,7 @@ int eDVBTSTools::openFile(const char *filename, int nostreaminfo)
        if (f->open(filename, 1) < 0)
                return -1;
 
        if (f->open(filename, 1) < 0)
                return -1;
 
-       setSource(src, filename);
+       setSource(src, nostreaminfo ? NULL : filename);
 
        return 0;
 }
 
        return 0;
 }