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
71d64fc8
Commit
71d64fc8
authored
Dec 19, 2009
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
osx/framework: fixed C99ism in previous commit
parent
6c3715d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
projects/macosx/framework/Sources/VLCLibrary.m
projects/macosx/framework/Sources/VLCLibrary.m
+6
-7
No files found.
projects/macosx/framework/Sources/VLCLibrary.m
View file @
71d64fc8
...
...
@@ -70,7 +70,7 @@ void __catch_exception( void * e, const char * function, const char * file, int
NSArray
*
vlcParams
=
[[
NSBundle
mainBundle
]
objectForInfoDictionaryKey
:
@"VLCParams"
];
if
(
!
vlcParams
)
{
NSMutableArray
*
defaultParams
=
[
NSMutableArray
array
];
[
defaultParams
addObject
:
@"-I
"
];
[
defaultParams
addObject
:
@"dummy"
];
// No interface
[
defaultParams
addObject
:
@"-I
dummy"
];
// No interface
[
defaultParams
addObject
:
@"--no-video-title-show"
];
// Don't show the title on overlay when starting to play
[
defaultParams
addObject
:
@"--no-sout-keep"
];
[
defaultParams
addObject
:
@"--ignore-config"
];
// Don't read and write VLC config files
...
...
@@ -79,18 +79,17 @@ void __catch_exception( void * e, const char * function, const char * file, int
[
defaultParams
addObject
:
@"--verbose=2"
];
// Don't polute the log
[
defaultParams
addObject
:
@"--vout=minimal_macosx"
];
[
defaultParams
addObject
:
@"--play-and-pause"
];
// When ending a stream pause it instead of stopping it
// [defaultParams addObject:@"--control=motion"];
// [defaultParams addObject:@"--motion-use-rotate"];
// [defaultParams addObject:@"--video-filter=rotate"];
vlcParams
=
defaultParams
;
}
int
paramNum
=
0
;
const
char
*
lib_vlc_params
[[
vlcParams
count
]];
for
(
int
paramNum
=
0
;
paramNum
<
[
vlcParams
count
];
paramNum
++
)
{
while
(
paramNum
<
[
vlcParams
count
]
)
{
NSString
*
vlcParam
=
[
vlcParams
objectAtIndex
:
paramNum
];
lib_vlc_params
[
paramNum
]
=
[
vlcParam
cStringUsingEncoding
:
NSASCIIStringEncoding
];
paramNum
++
;
}
instance
=
(
void
*
)
libvlc_new
(
[
vlcParams
count
]
,
lib_vlc_params
,
&
ex
);
instance
=
(
void
*
)
libvlc_new
(
sizeof
(
lib_vlc_params
)
/
sizeof
(
lib_vlc_params
[
0
])
,
lib_vlc_params
,
&
ex
);
catch_exception
(
&
ex
);
NSAssert
(
instance
,
@"libvlc failed to initialize"
);
...
...
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