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
3154a8b7
Commit
3154a8b7
authored
Dec 20, 2009
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
osx/framework: fixed a typo and enabled the framework to open external subtitle files
parent
6ee778a4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
4 deletions
+14
-4
projects/macosx/framework/Headers/Public/VLCMediaPlayer.h
projects/macosx/framework/Headers/Public/VLCMediaPlayer.h
+1
-0
projects/macosx/framework/Sources/VLCLibrary.m
projects/macosx/framework/Sources/VLCLibrary.m
+3
-3
projects/macosx/framework/Sources/VLCMediaPlayer.m
projects/macosx/framework/Sources/VLCMediaPlayer.m
+10
-1
No files found.
projects/macosx/framework/Headers/Public/VLCMediaPlayer.h
View file @
3154a8b7
...
...
@@ -108,6 +108,7 @@ extern NSString * VLCMediaPlayerStateToString(VLCMediaPlayerState state);
-
(
void
)
setVideoSubTitles
:(
int
)
value
;
-
(
int
)
countOfVideoSubTitles
;
-
(
int
)
currentVideoSubTitles
;
-
(
BOOL
)
openVideoSubTitlesFromFile
:(
NSString
*
)
path
;
-
(
void
)
setVideoCropGeometry
:(
char
*
)
value
;
-
(
char
*
)
videoCropGeometry
;
...
...
projects/macosx/framework/Sources/VLCLibrary.m
View file @
3154a8b7
...
...
@@ -76,12 +76,12 @@ void __catch_exception( void * e, const char * function, const char * file, int
[
defaultParams
addObject
:
@"--ignore-config"
];
// Don't read and write VLC config files
[
defaultParams
addObject
:
@"--opengl-provider=minimal_macosx"
];
// Use minimal_macosx
[
defaultParams
addObject
:
@"--vout=minimal_macosx"
];
[
defaultParams
addObject
:
@"--text-renderer=quartztext"
];
// our CoreText-based renderer
[
defaultParams
addObject
:
@"--verbose=2"
];
// Don't polute the log
[
defaultParams
addObject
:
@"--vout=minimal_macosx"
];
[
defaultParams
addObject
:
@"--no-color"
];
vlcParams
=
defaultParams
;
}
int
paramNum
=
0
;
const
char
*
lib_vlc_params
[[
vlcParams
count
]];
while
(
paramNum
<
[
vlcParams
count
])
{
...
...
@@ -92,7 +92,7 @@ void __catch_exception( void * e, const char * function, const char * file, int
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"
);
// Assignment unneeded, as the audio unit will do it for us
/*audio = */
[[
VLCAudio
alloc
]
initWithLibrary
:
self
];
}
...
...
projects/macosx/framework/Sources/VLCMediaPlayer.m
View file @
3154a8b7
...
...
@@ -287,7 +287,7 @@ static void HandleMediaInstanceStateChanged(const libvlc_event_t * event, void *
{
libvlc_exception_t
ex
;
libvlc_exception_init
(
&
ex
);
int
result
=
libvlc_video_get_spu
(
instance
,
&
ex
);
int
result
=
libvlc_video_get_spu
_count
(
instance
,
&
ex
);
catch_exception
(
&
ex
);
return
result
;
}
...
...
@@ -309,6 +309,15 @@ static void HandleMediaInstanceStateChanged(const libvlc_event_t * event, void *
}
}
-
(
BOOL
)
openVideoSubTitlesFromFile
:(
NSString
*
)
path
{
libvlc_exception_t
ex
;
libvlc_exception_init
(
&
ex
);
BOOL
result
=
libvlc_video_set_subtitle_file
(
instance
,
[
path
UTF8String
],
&
ex
);
catch_exception
(
&
ex
);
return
result
;
}
-
(
void
)
setVideoCropGeometry
:(
char
*
)
value
{
libvlc_exception_t
ex
;
...
...
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