From f331c5a219d5dcd9edeeeecf52643e9cda7c2e37 Mon Sep 17 00:00:00 2001 From: Ilkka Ollakka Date: Sun, 13 Jun 2010 14:35:09 +0300 Subject: [PATCH] Qt4: check extensionlength 2-4 (ts to webm) on sout regexpt --- modules/gui/qt4/components/sout/sout_widgets.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/gui/qt4/components/sout/sout_widgets.cpp b/modules/gui/qt4/components/sout/sout_widgets.cpp index e28ae3e8f4..aa430b0fe5 100644 --- a/modules/gui/qt4/components/sout/sout_widgets.cpp +++ b/modules/gui/qt4/components/sout/sout_widgets.cpp @@ -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 ); -- 2.39.2