Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
f331c5a2
Commit
f331c5a2
authored
Jun 13, 2010
by
Ilkka Ollakka
Browse files
Qt4: check extensionlength 2-4 (ts to webm) on sout regexpt
parent
96ee4e66
Changes
1
Show whitespace changes
Inline
Side-by-side
modules/gui/qt4/components/sout/sout_widgets.cpp
View file @
f331c5a2
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment