]> git.sesse.net Git - vlc/commitdiff
Qt4: check extensionlength 2-4 (ts to webm) on sout regexpt
authorIlkka Ollakka <ileoo@videolan.org>
Sun, 13 Jun 2010 11:35:09 +0000 (14:35 +0300)
committerIlkka Ollakka <ileoo@videolan.org>
Sun, 13 Jun 2010 20:18:52 +0000 (23:18 +0300)
modules/gui/qt4/components/sout/sout_widgets.cpp

index e28ae3e8f46889fcc510cb45370efd8f58f39efd..aa430b0fe5fe0ef59db2b38337cd6f40109cdbb5 100644 (file)
@@ -117,11 +117,11 @@ QString FileDestBox::getMRL( const QString& mux )
     QString outputfile = fileEdit->text();
     if( !mux.isEmpty() )
     {
-        if( outputfile.contains( QRegExp("\\..{2,3}$")) &&
+        if( outputfile.contains( QRegExp("\\..{2,4}$")) &&
             !outputfile.endsWith(mux) )
         {
            /* Replace the extension according to muxer */
-           outputfile.replace(QRegExp("\\..{2,3}$"),"."+mux);
+           outputfile.replace(QRegExp("\\..{2,4}$"),"."+mux);
         } else if (!outputfile.endsWith( mux ) )
         {
            m.option( "mux", mux );