Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
8098c107
Commit
8098c107
authored
Aug 24, 2008
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix typos and stupid code errors to make profiles work.
parent
b63140fa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
7 deletions
+20
-7
modules/gui/qt4/components/interface_widgets.cpp
modules/gui/qt4/components/interface_widgets.cpp
+0
-1
modules/gui/qt4/dialogs/sout.cpp
modules/gui/qt4/dialogs/sout.cpp
+20
-6
No files found.
modules/gui/qt4/components/interface_widgets.cpp
View file @
8098c107
...
...
@@ -458,7 +458,6 @@ void AdvControlsWidget::AtoBLoop( float f_pos, int i_time, int i_length )
}
}
/* FIXME Record function */
void
AdvControlsWidget
::
record
()
{
input_thread_t
*
p_input
=
THEMIM
->
getInput
();
...
...
modules/gui/qt4/dialogs/sout.cpp
View file @
8098c107
...
...
@@ -111,11 +111,17 @@ SoutDialog::SoutDialog( QWidget *parent, intf_thread_t *_p_intf,
/* ADD HERE for new profiles */
#define ADD_PROFILE( name, shortname ) ui.profileBox->addItem( qtr( name ), QVariant( QString( shortname ) ) );
ADD_PROFILE
(
"Custom"
,
"Custom"
)
ADD_PROFILE
(
"Ogg / Theora"
,
"theora"
)
ADD_PROFILE
(
"Ogg / Vorbis"
,
"vorbis"
)
ADD_PROFILE
(
"MPEG-2"
,
"mpeg2"
)
ADD_PROFILE
(
"MP3"
,
"mp3"
)
ADD_PROFILE
(
"MPEG-4 audio AAC"
,
"aac"
)
ADD_PROFILE
(
"MPEG-4 / DivX"
,
"mp4"
)
ADD_PROFILE
(
"H264"
,
"h264"
)
ADD_PROFILE
(
"IPod (mp4/aac)"
,
"IPod"
)
ADD_PROFILE
(
"XBox"
,
"XBox"
)
ADD_PROFILE
(
"Windows (wmv/asf)"
,
"Windows"
)
ADD_PROFILE
(
"PSP"
,
"PSP"
)
ADD_PROFILE
(
"GSM"
,
"GSM"
)
#define ADD_VCODEC( name, fourcc ) ui.vCodecBox->addItem( name, QVariant( fourcc ) );
ADD_VCODEC
(
"MPEG-1"
,
"mp1v"
)
...
...
@@ -267,18 +273,26 @@ void SoutDialog::setOptions()
ui.muxName ##Mux->setChecked( true ); \
\
ui.transcodeAudio->setChecked( hasAudio ); \
index = ui.aCodecBox->find
Text( v
CodecName ); \
index = ui.aCodecBox->find
Data( a
CodecName ); \
if( index >= 0 ) ui.aCodecBox->setCurrentIndex( index ); \
\
ui.transcodeVideo->setChecked( hasVideo ); \
index = ui.
aCodecBox->findText
( vCodecName ); \
index = ui.
vCodecBox->findData
( vCodecName ); \
if( index >=0 ) ui.vCodecBox->setCurrentIndex( index ); \
}
/* ADD HERE the profiles you want and need */
/* FIXME */
if
(
profileString
==
"IPod"
)
setProfile
(
MP4
,
true
,
"mp4a"
,
true
,
"mp4v"
)
else
if
(
profileString
==
"XBox"
)
setProfile
(
ASF
,
true
,
"wma"
,
true
,
"WMV2"
)
if
(
profileString
==
"IPod"
)
setProfile
(
MP4
,
true
,
"mp4v"
,
true
,
"mp4a"
)
else
if
(
profileString
==
"theora"
)
setProfile
(
Ogg
,
true
,
"theo"
,
true
,
"vorb"
)
else
if
(
profileString
==
"vorbis"
)
setProfile
(
Ogg
,
false
,
""
,
true
,
"vorb"
)
else
if
(
profileString
==
"mpeg2"
)
setProfile
(
TS
,
true
,
"mp2v"
,
true
,
"mpga"
)
else
if
(
profileString
==
"mp3"
)
setProfile
(
RAW
,
false
,
""
,
true
,
"mp3"
)
else
if
(
profileString
==
"aac"
)
setProfile
(
MP4
,
false
,
""
,
true
,
"mp4a"
)
else
if
(
profileString
==
"mp4"
)
setProfile
(
MP4
,
true
,
"mp4v"
,
true
,
"mp4a"
)
else
if
(
profileString
==
"h264"
)
setProfile
(
TS
,
true
,
"h264"
,
true
,
"mp4a"
)
else
if
(
profileString
==
"XBox"
)
setProfile
(
ASF
,
true
,
"WMV2"
,
true
,
"wma"
)
else
if
(
profileString
==
"Windows"
)
setProfile
(
ASF
,
true
,
"WMV2"
,
true
,
"wma"
)
else
if
(
profileString
==
"PSP"
)
setProfile
(
Ogg
,
true
,
"DIV3"
,
true
,
"vorb"
)
/* If the profile is not a custom one, then disable the tabWidget */
if
(
profileString
==
"Custom"
)
...
...
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