Commit f331c5a2 authored by Ilkka Ollakka's avatar Ilkka Ollakka

Qt4: check extensionlength 2-4 (ts to webm) on sout regexpt

parent 96ee4e66
...@@ -117,11 +117,11 @@ QString FileDestBox::getMRL( const QString& mux ) ...@@ -117,11 +117,11 @@ QString FileDestBox::getMRL( const QString& mux )
QString outputfile = fileEdit->text(); QString outputfile = fileEdit->text();
if( !mux.isEmpty() ) if( !mux.isEmpty() )
{ {
if( outputfile.contains( QRegExp("\\..{2,3}$")) && if( outputfile.contains( QRegExp("\\..{2,4}$")) &&
!outputfile.endsWith(mux) ) !outputfile.endsWith(mux) )
{ {
/* Replace the extension according to muxer */ /* Replace the extension according to muxer */
outputfile.replace(QRegExp("\\..{2,3}$"),"."+mux); outputfile.replace(QRegExp("\\..{2,4}$"),"."+mux);
} else if (!outputfile.endsWith( mux ) ) } else if (!outputfile.endsWith( mux ) )
{ {
m.option( "mux", mux ); m.option( "mux", mux );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment