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
0bfa1a60
Commit
0bfa1a60
authored
Jun 21, 2013
by
David Fuhrmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: CAS: fix customize dialog for {video,audio}-only profiles
parent
cf3c4017
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
10 deletions
+14
-10
modules/gui/macosx/ConvertAndSave.m
modules/gui/macosx/ConvertAndSave.m
+14
-10
No files found.
modules/gui/macosx/ConvertAndSave.m
View file @
0bfa1a60
...
...
@@ -67,7 +67,8 @@ static VLCConvertAndSave *_o_sharedInstance = nil;
#pragma mark -
#pragma mark Initialization
+
(
void
)
initialize
{
+
(
void
)
initialize
{
NSUserDefaults
*
defaults
=
[
NSUserDefaults
standardUserDefaults
];
/* We are using the same format as the Qt4 intf here:
...
...
@@ -86,11 +87,11 @@ static VLCConvertAndSave *_o_sharedInstance = nil;
@"ts;1;1;0;mp2v;800;1;0;0;0;mpga;128;2;44100;0;0"
,
@"asf;1;1;0;WMV2;800;1;0;0;0;wma2;128;2;44100;0;0"
,
@"asf;1;1;0;DIV3;800;1;0;0;0;mp3;128;2;44100;0;0"
,
@"ogg;
1
;1;0;none;800;1;0;0;0;vorb;128;2;44100;none;0"
,
@"raw;
1
;1;0;none;800;1;0;0;0;mp3;128;2;44100;none;0"
,
@"mp4;
1
;1;0;none;800;1;0;0;0;mpga;128;2;44100;none;0"
,
@"raw;
1
;1;0;none;800;1;0;0;0;flac;128;2;44100;none;0"
,
@"wav;
1
;1;0;none;800;1;0;0;0;s16l;128;2;44100;none;0"
,
nil
];
@"ogg;
0
;1;0;none;800;1;0;0;0;vorb;128;2;44100;none;0"
,
@"raw;
0
;1;0;none;800;1;0;0;0;mp3;128;2;44100;none;0"
,
@"mp4;
0
;1;0;none;800;1;0;0;0;mpga;128;2;44100;none;0"
,
@"raw;
0
;1;0;none;800;1;0;0;0;flac;128;2;44100;none;0"
,
@"wav;
0
;1;0;none;800;1;0;0;0;s16l;128;2;44100;none;0"
,
nil
];
NSArray
*
defaultProfileNames
=
[[
NSArray
alloc
]
initWithObjects
:
@"Video - H.264 + MP3 (MP4)"
,
...
...
@@ -876,20 +877,23 @@ static VLCConvertAndSave *_o_sharedInstance = nil;
if
([[
self
.
currentProfile
objectAtIndex
:
9
]
intValue
]
>
0
)
// height
[
composedOptions
appendFormat
:
@",height=%@"
,
[
self
.
currentProfile
objectAtIndex
:
9
]];
}
}
else
{
[
composedOptions
appendString
:
@"vcodec=none"
];
}
[
composedOptions
appendString
:
@","
];
if
([[
self
.
currentProfile
objectAtIndex
:
2
]
intValue
])
{
// audio is enabled
// add another comma in case video is enabled
if
([[
self
.
currentProfile
objectAtIndex
:
1
]
intValue
])
[
composedOptions
appendString
:
@","
];
[
composedOptions
appendFormat
:
@"acodec=%@"
,
[
self
.
currentProfile
objectAtIndex
:
10
]];
if
(
!
[[
self
.
currentProfile
objectAtIndex
:
10
]
isEqualToString
:
@"none"
])
{
[
composedOptions
appendFormat
:
@",ab=%@"
,
[
self
.
currentProfile
objectAtIndex
:
11
]];
// bitrate
[
composedOptions
appendFormat
:
@",channels=%@"
,
[
self
.
currentProfile
objectAtIndex
:
12
]];
// channel number
[
composedOptions
appendFormat
:
@",samplerate=%@"
,
[
self
.
currentProfile
objectAtIndex
:
13
]];
// sample rate
}
}
else
{
[
composedOptions
appendString
:
@"acodec=none"
];
}
if
([
self
.
currentProfile
objectAtIndex
:
3
])
{
// subtitles enabled
...
...
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