[vlc-commits] commit: Qt4: check extensionlength 2-4 (ts to webm) on sout regexpt ( Ilkka Ollakka )
git at videolan.org
git at videolan.org
Sun Jun 13 22:36:17 CEST 2010
vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Sun Jun 13 14:35:09 2010 +0300| [f331c5a219d5dcd9edeeeecf52643e9cda7c2e37] | committer: Ilkka Ollakka
Qt4: check extensionlength 2-4 (ts to webm) on sout regexpt
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f331c5a219d5dcd9edeeeecf52643e9cda7c2e37
---
modules/gui/qt4/components/sout/sout_widgets.cpp | 4 ++--
1 files 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 e28ae3e..aa430b0 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 );
More information about the vlc-commits
mailing list