Changeset adcea581b76fb0e79e54ce02ef87ebd9be362e99
- Timestamp:
- 25/10/07 14:34:12
(1 year ago)
- Author:
- Pierre d'Herbemont <pdherbemont@videolan.org>
- git-committer:
- Pierre d'Herbemont <pdherbemont@videolan.org> 1193315652 +0000
- git-parent:
[64659b286cac3e29ca1fb48c826d7674e4f751ea]
- git-author:
- Pierre d'Herbemont <pdherbemont@videolan.org> 1193315652 +0000
- Message:
control/audio.c: Implement get_audio_track_count. (Patch by Enrique Osuna).
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| rcc3bd15 |
radcea58 |
|
| 116 | 116 | |
|---|
| 117 | 117 | /***************************************************************************** |
|---|
| | 118 | * libvlc_audio_get_track_count : Get the number of available audio tracks |
|---|
| | 119 | *****************************************************************************/ |
|---|
| | 120 | int libvlc_audio_get_track_count( libvlc_media_instance_t *p_mi, |
|---|
| | 121 | libvlc_exception_t *p_e ) |
|---|
| | 122 | { |
|---|
| | 123 | input_thread_t *p_input_thread = libvlc_get_input_thread( p_mi, p_e ); |
|---|
| | 124 | vlc_value_t val_list; |
|---|
| | 125 | |
|---|
| | 126 | if( !p_input_thread ) |
|---|
| | 127 | return -1; |
|---|
| | 128 | |
|---|
| | 129 | var_Change( p_input_thread, "audio-es", VLC_VAR_GETCHOICES, &val_list, NULL ); |
|---|
| | 130 | vlc_object_release( p_input_thread ); |
|---|
| | 131 | return val_list.p_list->i_count; |
|---|
| | 132 | } |
|---|
| | 133 | |
|---|
| | 134 | /***************************************************************************** |
|---|
| 118 | 135 | * libvlc_audio_get_track : Get the current audio track |
|---|
| 119 | 136 | *****************************************************************************/ |
|---|
| … | … | |
| 152 | 169 | return i_track; |
|---|
| 153 | 170 | } |
|---|
| | 171 | |
|---|
| 154 | 172 | |
|---|
| 155 | 173 | /***************************************************************************** |
|---|