Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
594e6e22
Commit
594e6e22
authored
May 07, 2008
by
Tanguy Krotoff
Committed by
Jean-Paul Saman
May 10, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libvlc: add subtitle file (*.srt...) handling
Signed-off-by:
Jean-Paul Saman
<
jpsaman@videolan.org
>
parent
48a985ec
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
0 deletions
+26
-0
include/vlc/libvlc.h
include/vlc/libvlc.h
+10
-0
src/control/video.c
src/control/video.c
+16
-0
No files found.
include/vlc/libvlc.h
View file @
594e6e22
...
...
@@ -516,6 +516,16 @@ VLC_PUBLIC_API int libvlc_video_get_spu( libvlc_media_player_t *, libvlc_excepti
*/
VLC_PUBLIC_API
void
libvlc_video_set_spu
(
libvlc_media_player_t
*
,
int
,
libvlc_exception_t
*
);
/**
* Set new video subtitle file.
*
* \param p_mediaplayer the media player
* \param psz_subtitle new video subtitle file
* \param p_e an initialized exception pointer
* \return the success status (boolean)
*/
VLC_PUBLIC_API
int
libvlc_video_set_subtitle_file
(
libvlc_media_player_t
*
,
char
*
,
libvlc_exception_t
*
);
/**
* Get current crop filter geometry.
*
...
...
src/control/video.c
View file @
594e6e22
...
...
@@ -450,6 +450,22 @@ void libvlc_video_set_spu( libvlc_media_player_t *p_mi, int i_spu,
vlc_object_release
(
p_input_thread
);
}
int
libvlc_video_set_subtitle_file
(
libvlc_media_player_t
*
p_mi
,
char
*
psz_subtitle
,
libvlc_exception_t
*
p_e
)
{
input_thread_t
*
p_input_thread
=
libvlc_get_input_thread
(
p_mi
,
p_e
);
bool
b_ret
=
false
;
if
(
p_input_thread
)
{
if
(
input_AddSubtitles
(
p_input_thread
,
psz_subtitle
,
true
)
)
b_ret
=
true
;
vlc_object_release
(
p_input_thread
);
}
return
b_ret
;
}
char
*
libvlc_video_get_crop_geometry
(
libvlc_media_player_t
*
p_mi
,
libvlc_exception_t
*
p_e
)
{
...
...
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