Changeset 594e6e22ceafa46b99baa2b2bfdc4012680d4f13
- Timestamp:
- 05/10/08 20:01:11
(2 months ago)
- Author:
- Jean-Paul Saman <jpsaman@videolan.org>
- git-committer:
- Jean-Paul Saman <jpsaman@videolan.org> 1210442471 +0200
- git-parent:
[48a985ecd756e3969c4b55998f24e281f03c1536]
- git-author:
- Tanguy Krotoff <tkrotoff@gmail.com> 1210125171 +0200
- Message:
libvlc: add subtitle file (*.srt...) handling
Signed-off-by: Jean-Paul Saman <jpsaman@videolan.org>
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r8ee62bb |
r594e6e2 |
|
| 518 | 518 | |
|---|
| 519 | 519 | /** |
|---|
| | 520 | * Set new video subtitle file. |
|---|
| | 521 | * |
|---|
| | 522 | * \param p_mediaplayer the media player |
|---|
| | 523 | * \param psz_subtitle new video subtitle file |
|---|
| | 524 | * \param p_e an initialized exception pointer |
|---|
| | 525 | * \return the success status (boolean) |
|---|
| | 526 | */ |
|---|
| | 527 | VLC_PUBLIC_API int libvlc_video_set_subtitle_file( libvlc_media_player_t *, char *, libvlc_exception_t * ); |
|---|
| | 528 | |
|---|
| | 529 | /** |
|---|
| 520 | 530 | * Get current crop filter geometry. |
|---|
| 521 | 531 | * |
|---|
| r449fd28 |
r594e6e2 |
|
| 451 | 451 | } |
|---|
| 452 | 452 | |
|---|
| | 453 | int libvlc_video_set_subtitle_file( libvlc_media_player_t *p_mi, |
|---|
| | 454 | char *psz_subtitle, |
|---|
| | 455 | libvlc_exception_t *p_e ) |
|---|
| | 456 | { |
|---|
| | 457 | input_thread_t *p_input_thread = libvlc_get_input_thread ( p_mi, p_e ); |
|---|
| | 458 | bool b_ret = false; |
|---|
| | 459 | |
|---|
| | 460 | if( p_input_thread ) |
|---|
| | 461 | { |
|---|
| | 462 | if( input_AddSubtitles( p_input_thread, psz_subtitle, true ) ) |
|---|
| | 463 | b_ret = true; |
|---|
| | 464 | vlc_object_release( p_input_thread ); |
|---|
| | 465 | } |
|---|
| | 466 | return b_ret; |
|---|
| | 467 | } |
|---|
| | 468 | |
|---|
| 453 | 469 | char *libvlc_video_get_crop_geometry( libvlc_media_player_t *p_mi, |
|---|
| 454 | 470 | libvlc_exception_t *p_e ) |
|---|