Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
cdf0a385
Commit
cdf0a385
authored
Feb 25, 2015
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: profiles editor: fix and improve muxers warning messages
parent
b68878ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
16 deletions
+21
-16
modules/gui/qt4/components/sout/profile_selector.cpp
modules/gui/qt4/components/sout/profile_selector.cpp
+21
-16
No files found.
modules/gui/qt4/components/sout/profile_selector.cpp
View file @
cdf0a385
...
...
@@ -516,8 +516,9 @@ inline void VLCProfileEditor::registerFilters()
inline
void
VLCProfileEditor
::
registerCodecs
()
{
#define SETMUX( button, val,
vid, aud, men, sub, stream, chaps ) \
#define SETMUX( button, val,
mod,
vid, aud, men, sub, stream, chaps ) \
ui.button->setProperty( "sout", val );\
ui.button->setProperty( "module", mod );\
ui.button->setProperty( "capvideo", vid );\
ui.button->setProperty( "capaudio", aud );\
ui.button->setProperty( "capmenu", men );\
...
...
@@ -525,19 +526,19 @@ inline void VLCProfileEditor::registerCodecs()
ui.button->setProperty( "capstream", stream );\
ui.button->setProperty( "capchaps", chaps );\
CONNECT( ui.button, clicked(bool), this, muxSelected() );
SETMUX
(
PSMux
,
"ps"
,
true
,
true
,
false
,
true
,
false
,
true
)
SETMUX
(
TSMux
,
"ts"
,
true
,
true
,
false
,
true
,
true
,
false
)
SETMUX
(
WEBMux
,
"webm"
,
true
,
true
,
false
,
false
,
true
,
false
)
SETMUX
(
MPEG1Mux
,
"mpeg1"
,
true
,
true
,
false
,
false
,
false
,
false
)
SETMUX
(
OggMux
,
"ogg"
,
true
,
true
,
false
,
false
,
true
,
true
)
SETMUX
(
ASFMux
,
"asf"
,
true
,
true
,
false
,
true
,
true
,
true
)
SETMUX
(
MOVMux
,
"mp4"
,
true
,
true
,
true
,
true
,
true
,
false
)
SETMUX
(
WAVMux
,
"wav"
,
false
,
true
,
false
,
false
,
false
,
false
)
SETMUX
(
RAWMux
,
"raw"
,
true
,
true
,
false
,
false
,
false
,
false
)
SETMUX
(
FLVMux
,
"flv"
,
true
,
true
,
false
,
false
,
true
,
false
)
SETMUX
(
MKVMux
,
"mkv"
,
true
,
true
,
true
,
true
,
true
,
true
)
SETMUX
(
AVIMux
,
"avi"
,
true
,
true
,
false
,
false
,
false
,
false
)
SETMUX
(
MJPEGMux
,
"mpjpeg"
,
true
,
false
,
false
,
false
,
false
,
false
)
SETMUX
(
PSMux
,
"ps"
,
"ps"
,
true
,
true
,
false
,
true
,
false
,
true
)
SETMUX
(
TSMux
,
"ts"
,
"mux_ts"
,
true
,
true
,
false
,
true
,
true
,
false
)
SETMUX
(
WEBMux
,
"webm"
,
"avformat"
,
true
,
true
,
false
,
false
,
true
,
false
)
SETMUX
(
MPEG1Mux
,
"mpeg1"
,
"ps"
,
true
,
true
,
false
,
false
,
false
,
false
)
SETMUX
(
OggMux
,
"ogg"
,
"mux_ogg"
,
true
,
true
,
false
,
false
,
true
,
true
)
SETMUX
(
ASFMux
,
"asf"
,
"asf"
,
true
,
true
,
false
,
true
,
true
,
true
)
SETMUX
(
MOVMux
,
"mp4"
,
"mp4"
,
true
,
true
,
true
,
true
,
true
,
false
)
SETMUX
(
WAVMux
,
"wav"
,
"wav"
,
false
,
true
,
false
,
false
,
false
,
false
)
SETMUX
(
RAWMux
,
"raw"
,
"dummy"
,
true
,
true
,
false
,
false
,
false
,
false
)
SETMUX
(
FLVMux
,
"flv"
,
"avformat"
,
true
,
true
,
false
,
false
,
true
,
false
)
SETMUX
(
MKVMux
,
"mkv"
,
"avformat"
,
true
,
true
,
true
,
true
,
true
,
true
)
SETMUX
(
AVIMux
,
"avi"
,
"avi"
,
true
,
true
,
false
,
false
,
false
,
false
)
SETMUX
(
MJPEGMux
,
"mpjpeg"
,
"mpjpeg"
,
true
,
false
,
false
,
false
,
false
,
false
)
#undef SETMUX
#define ADD_VCODEC( name, fourcc ) \
...
...
@@ -615,12 +616,16 @@ void VLCProfileEditor::muxSelected()
SETYESNOSTATE
(
capsubs
,
"capsubs"
);
SETYESNOSTATE
(
capstream
,
"capstream"
);
SETYESNOSTATE
(
capchaps
,
"capchaps"
);
bool
b
=
caps
[
"muxers"
].
contains
(
"mux_"
+
current
->
property
(
"sout"
).
toString
()
);
if
(
!
b
)
if
(
current
->
property
(
"module"
).
toString
()
==
"avformat"
)
ui
.
muxerwarning
->
setText
(
QString
(
"<img src=
\"
:/menu/info
\"
/> %1"
)
.
arg
(
qtr
(
"This muxer is not provided directly by VLC: It could be missing."
)
)
);
else
if
(
!
caps
[
"muxers"
].
contains
(
current
->
property
(
"module"
).
toString
()
)
)
ui
.
muxerwarning
->
setText
(
QString
(
"<img src=
\"
:/menu/quit
\"
/> %1"
)
.
arg
(
qtr
(
"This muxer is missing. Using this profile will fail"
)
)
);
else
ui
.
muxerwarning
->
setText
(
""
);
return
;
...
...
Write
Preview
Markdown
is supported
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