Commit 232e1175 authored by Ilkka Ollakka's avatar Ilkka Ollakka

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

(cherry picked from commit f331c5a219d5dcd9edeeeecf52643e9cda7c2e37)
Signed-off-by: default avatarIlkka Ollakka <ileoo@videolan.org>
parent e14b3fcc
......@@ -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 );
......
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