VLC 4.0.0-dev
|
Go to the source code of this file.
Data Structures | |
struct | vlc_player_track_priv |
struct | vlc_player_program_vector |
struct | vlc_player_track_vector |
struct | vlc_player_title_list |
struct | vlc_player_input |
struct | vlc_player_listener_id |
struct | vlc_player_metadata_listener_id |
struct | vlc_player_vout_listener_id |
struct | vlc_player_aout_listener_id |
struct | vlc_player_timer_id |
struct | vlc_player_timer_source |
struct | vlc_player_timer |
struct | vlc_player_t |
Macros | |
#define | best_source sources[VLC_PLAYER_TIMER_TYPE_BEST] |
#define | smpte_source sources[VLC_PLAYER_TIMER_TYPE_SMPTE] |
#define | VLC_PLAYER_EOS_BURST_THRESHOLD VLC_TICK_FROM_MS(250) |
Playing a tiny stream (either empty, or with unreported errors) in a loop would cause high CPU usage. | |
#define | vlc_player_SendEvent(player, event, ...) |
#define best_source sources[VLC_PLAYER_TIMER_TYPE_BEST] |
#define smpte_source sources[VLC_PLAYER_TIMER_TYPE_SMPTE] |
#define VLC_PLAYER_EOS_BURST_THRESHOLD VLC_TICK_FROM_MS(250) |
Playing a tiny stream (either empty, or with unreported errors) in a loop would cause high CPU usage.
To mitigate the problem, temporize if several EOS are received too quickly.
#define vlc_player_SendEvent | ( | player, | |
event, | |||
... | |||
) |
|
inlinestatic |
References AUDIO_ES, SPU_ES, and VIDEO_ES.
Referenced by vlc_player_osd_Track(), vlc_player_osd_Tracks(), and vlc_player_SetCategoryDelay().
void vlc_player_aout_Deinit | ( | vlc_player_t * | player | ) |
References vlc_player_aout_DelCallbacks().
Referenced by vlc_player_aout_Reset(), vlc_player_Delete(), and vlc_player_New().
audio_output_t * vlc_player_aout_Init | ( | vlc_player_t * | player | ) |
References input_resource_GetAout(), input_resource_PutAout(), vlc_player_t::resource, and vlc_player_aout_AddCallbacks().
Referenced by vlc_player_aout_Reset(), and vlc_player_New().
|
inlinestatic |
References vlc_player_t::lock, and vlc_mutex_assert.
Referenced by vlc_player_AddListener(), vlc_player_AddMetadataListener(), vlc_player_CondWait(), vlc_player_get_input_locked(), vlc_player_GetAssociatedSubsFPS(), vlc_player_GetCategoryLanguage(), vlc_player_GetCurrentMedia(), vlc_player_GetNextMedia(), vlc_player_GetRenderer(), vlc_player_GetState(), vlc_player_input_RestoreMlStates(), vlc_player_InvalidateNextMedia(), vlc_player_RemoveListener(), vlc_player_RemoveMetadataListener(), vlc_player_SelectCategoryLanguage(), vlc_player_SelectTracksByStringIds(), vlc_player_SetCurrentMedia(), vlc_player_SetNextMedia(), vlc_player_SetPauseOnCork(), vlc_player_SetRenderer(), vlc_player_SetStartPaused(), vlc_player_Start(), and vlc_playlist_AssertLocked().
void vlc_player_DestroyTimer | ( | vlc_player_t * | player | ) |
References vlc_player_timer_source::listeners, vlc_player_timer::sources, vlc_player_t::timer, vlc_list_is_empty(), and VLC_PLAYER_TIMER_TYPE_COUNT.
Referenced by vlc_player_Delete(), and vlc_player_New().
void vlc_player_destructor_AddJoinableInput | ( | vlc_player_t * | player, |
struct vlc_player_input * | input | ||
) |
void vlc_player_destructor_AddStoppingInput | ( | vlc_player_t * | player, |
struct vlc_player_input * | input | ||
) |
References vlc_player_t::destructor, vlc_player_t::inputs, vlc_player_input::node, vlc_player_input::player, vlc_player_t::stopping_inputs, vlc_cond_signal(), vlc_list_append(), vlc_list_HasInput(), vlc_list_remove(), and vlc_player_t::wait.
Referenced by vlc_player_destructor_Thread(), and vlc_player_input_HandleStateEvent().
|
inlinestatic |
References vlc_player_t::input, vlc_player_input::player, and vlc_player_assert_locked().
Referenced by vlc_player_AddAssociatedMedia(), vlc_player_ChangeRate(), vlc_player_DisplayPosition(), vlc_player_GetAtoBLoop(), vlc_player_GetCapabilities(), vlc_player_GetCategoryDelay(), vlc_player_GetError(), vlc_player_GetEsIdDelay(), vlc_player_GetEsIdFromVout(), vlc_player_GetLength(), vlc_player_GetPosition(), vlc_player_GetPrivTrack(), vlc_player_GetProgram(), vlc_player_GetProgramAt(), vlc_player_GetProgramCount(), vlc_player_GetRate(), vlc_player_GetSelectedChapterIdx(), vlc_player_GetSelectedTitleIdx(), vlc_player_GetSignal(), vlc_player_GetStatistics(), vlc_player_GetTeletextPage(), vlc_player_GetTime(), vlc_player_GetTitleIdx(), vlc_player_GetTitleList(), vlc_player_GetTrackAt(), vlc_player_GetTrackCount(), vlc_player_GetV4l2Object(), vlc_player_HasTeletextMenu(), vlc_player_IsRecording(), vlc_player_IsTeletextEnabled(), vlc_player_IsTeletextTransparent(), vlc_player_Navigate(), vlc_player_NextVideoFrame(), vlc_player_RestartEsId(), vlc_player_SeekByPos(), vlc_player_SeekByTime(), vlc_player_SelectChapterIdx(), vlc_player_SelectEsId(), vlc_player_SelectEsIdList(), vlc_player_SelectNextChapter(), vlc_player_SelectNextTitle(), vlc_player_SelectPrevChapter(), vlc_player_SelectPrevTitle(), vlc_player_SelectProgram(), vlc_player_SelectTeletextPage(), vlc_player_SelectTitleIdx(), vlc_player_SelectTracksByStringIds(), vlc_player_SetAssociatedSubsFPS(), vlc_player_SetAtoBLoop(), vlc_player_SetCategoryDelay(), vlc_player_SetEsIdDelay(), vlc_player_SetPause(), vlc_player_SetRecordingEnabled(), vlc_player_SetTeletextEnabled(), vlc_player_SetTeletextTransparency(), vlc_player_SetTrackCategoryEnabled(), vlc_player_Stop(), vlc_player_UnselectEsId(), and vlc_player_UpdateViewpoint().
int vlc_player_GetFirstSelectedTrackId | ( | const vlc_player_track_vector * | tracks | ) |
vlc_object_t * vlc_player_GetObject | ( | vlc_player_t * | player | ) |
References vlc_player_input::player, and VLC_OBJECT.
Referenced by vlc_playlist_Export().
int vlc_player_GetTimerPoint | ( | vlc_player_t * | player, |
bool | seeking, | ||
vlc_tick_t | system_now, | ||
vlc_tick_t * | out_ts, | ||
double * | out_pos | ||
) |
References vlc_player_timer::lock, vlc_player_timer::seek_position, vlc_player_timer::seek_ts, vlc_player_t::timer, VLC_EGENERIC, vlc_mutex_lock(), vlc_mutex_unlock(), vlc_player_timer_point_Interpolate(), VLC_SUCCESS, and VLC_TICK_INVALID.
Referenced by vlc_player_input_GetPos(), and vlc_player_input_GetTime().
void vlc_player_InitTimer | ( | vlc_player_t * | player | ) |
References vlc_player_timer_source::es, vlc_player_timer_source::listeners, vlc_player_timer::lock, vlc_player_timer_source::point, vlc_player_timer::sources, vlc_player_timer_point::system_date, vlc_player_t::timer, vlc_list_init(), vlc_mutex_init(), vlc_player_ResetTimer(), VLC_PLAYER_TIMER_TYPE_COUNT, and VLC_TICK_INVALID.
Referenced by vlc_player_New().
void vlc_player_input_Delete | ( | struct vlc_player_input * | input | ) |
References vlc_player_input::audio_track_vector, input_Close(), vlc_player_input::program_vector, vlc_player_program_vector::size, vlc_player_track_vector::size, vlc_player_input::spu_track_vector, vlc_player_input::teletext_source, vlc_player_input::thread, vlc_player_input::titles, vlc_player_input::video_track_vector, and vlc_vector_destroy.
Referenced by vlc_player_destructor_Thread().
struct vlc_player_track_priv * vlc_player_input_FindTrackById | ( | struct vlc_player_input * | input, |
vlc_es_id_t * | id, | ||
size_t * | idx | ||
) |
References vlc_es_id_GetCat(), vlc_player_input_GetTrackVector(), and vlc_player_track_vector_FindById().
Referenced by vlc_player_GetEsIdDelay(), vlc_player_input_HandleVoutEvent(), and vlc_player_SetEsIdDelay().
double vlc_player_input_GetPos | ( | struct vlc_player_input * | input, |
bool | seeking, | ||
vlc_tick_t | system_now | ||
) |
char * vlc_player_input_GetSelectedTrackStringIds | ( | struct vlc_player_input * | input, |
enum es_format_category_e | cat | ||
) |
References vlc_player_track::es_id, vlc_memstream::ptr, vlc_player_track_priv::t, vlc_es_id_GetStrId(), vlc_es_id_IsStrIdStable(), vlc_memstream_close(), vlc_memstream_open(), vlc_memstream_putc(), vlc_memstream_puts(), vlc_player_input_GetTrackVector(), and vlc_vector_foreach.
Referenced by vlc_player_UpdateMLStates().
vlc_tick_t vlc_player_input_GetTime | ( | struct vlc_player_input * | input, |
bool | seeking, | ||
vlc_tick_t | system_now | ||
) |
|
inlinestatic |
References AUDIO_ES, vlc_player_input::audio_track_vector, SPU_ES, vlc_player_input::spu_track_vector, VIDEO_ES, and vlc_player_input::video_track_vector.
Referenced by vlc_player_GetEsIdFromVout(), vlc_player_GetPrivTrack(), vlc_player_GetTrackAt(), vlc_player_GetTrackCount(), vlc_player_input_FindTrackById(), vlc_player_input_GetSelectedTrackStringIds(), and vlc_player_input_HandleEsEvent().
void vlc_player_input_HandleState | ( | struct vlc_player_input * | input, |
enum | vlc_player_state, | ||
vlc_tick_t | state_date | ||
) |
References vlc_player_t::deleting, vlc_player_t::eos_burst_count, vlc_player_t::global_state, vlc_player_t::input, vlc_player_t::last_eos, vlc_player_t::next_media, vlc_player_input::pause_date, vlc_player_input::player, vlc_player_input::started, vlc_player_t::started, state, vlc_player_input::state, vlc_player_input::titles, vlc_assert_unreachable, VLC_PLAYER_EOS_BURST_THRESHOLD, vlc_player_input_Start(), vlc_player_OpenNextMedia(), vlc_player_ResetTimer(), vlc_player_SendEvent, VLC_PLAYER_STATE_PAUSED, VLC_PLAYER_STATE_PLAYING, VLC_PLAYER_STATE_STARTED, VLC_PLAYER_STATE_STOPPED, VLC_PLAYER_STATE_STOPPING, VLC_PLAYER_TIMER_EVENT_DISCONTINUITY, VLC_PLAYER_TIMER_EVENT_PAUSED, VLC_PLAYER_TIMER_EVENT_PLAYING, VLC_PLAYER_TIMER_EVENT_STOPPING, vlc_player_title_list_Release(), vlc_player_UpdateTimerEvent(), vlc_player_WaitRetryDelay(), VLC_TICK_INVALID, and vlc_tick_now().
Referenced by input_thread_Events(), vlc_player_destructor_Thread(), and vlc_player_input_HandleStateEvent().
struct vlc_player_input * vlc_player_input_New | ( | vlc_player_t * | player, |
input_item_t * | item | ||
) |
References vlc_player_input::abloop_state, vlc_ml_playback_states_all::aspect_ratio, AUDIO_ES, vlc_player_t::audio_string_ids, vlc_player_input::audio_track_vector, vlc_player_input::cache, vlc_player_input::capabilities, vlc_player_input::cat_delays, vlc_input_thread_cfg::cbs, vlc_player_input::chapter_selected, vlc_ml_playback_states_all::crop, vlc_ml_playback_states_all::current_audio_track, vlc_ml_playback_states_all::current_subtitle_track, vlc_ml_playback_states_all::current_title, vlc_ml_playback_states_all::current_video_track, DATA_ES, vlc_ml_playback_states_all::deinterlace, vlc_player_input::delay_restore, vlc_player_input::error, vlc_player_input::has_audio_tracks, vlc_player_input::has_video_tracks, input_Create, input_SetEsCatDelay(), input_thread_Events(), INPUT_TYPE_PLAYBACK, vlc_player_input::length, vlc_player_input::ml, vlc_player_input::normal_time, vlc_input_thread_callbacks::on_event, vlc_player_input::pause_date, vlc_player_input::player, vlc_player_input::playing, vlc_player_input::pos, vlc_player_input::position, vlc_player_input::program_vector, vlc_player_input::rate, vlc_player_input::recording, vlc_player_t::renderer, vlc_player_t::resource, vlc_player_input::restore, vlc_player_input::restore_states, vlc_player_input::set, vlc_player_input::signal_quality, vlc_player_input::signal_strength, SPU_ES, vlc_player_input::spu_track_vector, vlc_player_input::started, vlc_player_input::state, vlc_player_input::states, vlc_player_input::stats, vlc_player_t::sub_string_ids, vlc_player_input::teletext_enabled, vlc_player_input::teletext_page, vlc_player_input::teletext_source, vlc_player_input::teletext_transparent, vlc_player_input::thread, vlc_player_input::time, vlc_player_input::title_selected, vlc_player_input::titles, vlc_input_thread_cfg::type, UNKNOWN_ES, var_InheritInteger(), VIDEO_ES, vlc_ml_playback_states_all::video_filter, vlc_player_t::video_string_ids, vlc_player_input::video_track_vector, VLC_PLAYER_ERROR_NONE, vlc_player_input_RestoreMlStates(), vlc_player_input_SelectTracksByStringIds(), vlc_player_SendEvent, VLC_PLAYER_STATE_STOPPED, vlc_player_input::VLC_RESTOREPOINT_NONE, VLC_SUCCESS, VLC_TICK_0, VLC_TICK_FROM_MS, vlc_tick_from_samples(), VLC_TICK_INVALID, and vlc_vector_init.
Referenced by vlc_player_OpenNextMedia(), and vlc_player_Start().
void vlc_player_input_RestoreMlStates | ( | struct vlc_player_input * | input, |
bool | force_pos | ||
) |
References vlc_ml_playback_states_all::aspect_ratio, AUDIO_ES, vlc_ml_playback_states_all::current_audio_track, vlc_ml_playback_states_all::current_subtitle_track, vlc_ml_playback_states_all::current_title, vlc_ml_playback_states_all::current_video_track, vlc_ml_playback_states_all::deinterlace, vlc_player_input::delay_restore, vlc_ml_media_t::f_progress, vlc_ml_media_t::i_id, vlc_ml_media_t::i_type, input_GetItem(), input_SetPosition(), vlc_player_input::ml, vlc_player_input::player, vlc_player_input::pos, input_item_t::psz_uri, vlc_ml_playback_states_all::rate, vlc_player_input::restore, vlc_player_input::restore_states, SPU_ES, vlc_player_input::states, vlc_player_input::thread, var_InheritBool(), var_InheritInteger(), var_SetFloat(), var_SetInteger(), var_SetString(), VIDEO_ES, vlc_ml_playback_states_all::video_filter, vlc_ml_get_media_by_mrl(), vlc_ml_instance_get, vlc_ml_media_get_all_playback_pref(), VLC_ML_MEDIA_TYPE_VIDEO, vlc_ml_release, vlc_player_assert_locked(), vlc_player_ChangeRate(), vlc_player_input_SelectTracksByStringIds(), VLC_PLAYER_RESTORE_PLAYBACK_POS_ALWAYS, VLC_PLAYER_RESTORE_PLAYBACK_POS_ASK, vlc_player_vout_Hold(), VLC_SUCCESS, vout_Release(), and vlc_ml_playback_states_all::zoom.
Referenced by vlc_player_input_New(), and vlc_player_RestorePlaybackPos().
void vlc_player_input_SeekByPos | ( | struct vlc_player_input * | input, |
double | position, | ||
enum vlc_player_seek_speed | speed, | ||
enum vlc_player_whence | whence | ||
) |
References INPUT_CONTROL_SET_POSITION, input_ControlPush(), vlc_player_input::player, vlc_player_input::thread, vlc_player_assert_seek_params(), vlc_player_input_GetPos(), vlc_player_osd_Position(), vlc_player_UpdateTimerSeekState(), VLC_PLAYER_WHENCE_ABSOLUTE, VLC_SUCCESS, VLC_TICK_INVALID, and vlc_tick_now().
Referenced by vlc_player_SeekByPos().
void vlc_player_input_SeekByTime | ( | struct vlc_player_input * | input, |
vlc_tick_t | time, | ||
enum vlc_player_seek_speed | speed, | ||
enum vlc_player_whence | whence | ||
) |
References INPUT_CONTROL_SET_TIME, input_ControlPush(), vlc_player_input::player, vlc_player_input::thread, vlc_player_assert_seek_params(), vlc_player_input_GetTime(), vlc_player_osd_Position(), vlc_player_UpdateTimerSeekState(), VLC_PLAYER_WHENCE_ABSOLUTE, VLC_SUCCESS, VLC_TICK_0, and vlc_tick_now().
Referenced by vlc_player_input_NavigationFallback(), and vlc_player_SeekByTime().
void vlc_player_input_SelectTracksByStringIds | ( | struct vlc_player_input * | input, |
enum es_format_category_e | cat, | ||
const char * | str_ids | ||
) |
References input_SetEsCatIds(), and vlc_player_input::thread.
Referenced by vlc_player_input_New(), vlc_player_input_RestoreMlStates(), and vlc_player_SelectTracksByStringIds().
int vlc_player_input_Start | ( | struct vlc_player_input * | input | ) |
References input_Start(), vlc_player_input::started, vlc_player_input::thread, and VLC_SUCCESS.
Referenced by vlc_player_input_HandleState(), and vlc_player_Start().
void vlc_player_input_UpdateViewpoint | ( | struct vlc_player_input * | input, |
const vlc_viewpoint_t * | viewpoint, | ||
enum vlc_player_whence | whence | ||
) |
int vlc_player_OpenNextMedia | ( | vlc_player_t * | player | ) |
References vlc_player_t::audio_string_ids, vlc_player_input::delay_restore, vlc_player_t::input, input_item_Release(), vlc_player_t::media, vlc_player_input::ml, vlc_player_t::next_media, vlc_player_input::player, vlc_player_t::releasing_media, vlc_player_t::sub_string_ids, vlc_player_t::video_string_ids, VLC_EGENERIC, VLC_ENOMEM, vlc_player_input_New(), vlc_player_SendEvent, and VLC_SUCCESS.
Referenced by vlc_player_input_HandleState(), vlc_player_SetCurrentMedia(), and vlc_player_Start().
void vlc_player_osd_Icon | ( | vlc_player_t * | player, |
short | type | ||
) |
References count, vlc_player_osd_HoldAll(), vlc_player_osd_ReleaseAll(), and vouts_osd_Icon().
Referenced by vlc_player_SetPause(), and vlc_player_Start().
void vlc_player_osd_Message | ( | vlc_player_t * | player, |
const char * | fmt, | ||
... | |||
) |
void vlc_player_osd_Position | ( | vlc_player_t * | player, |
struct vlc_player_input * | input, | ||
vlc_tick_t | time, | ||
double | position | ||
) |
References count, vlc_player_input::length, MSTRTIME_MAX_SIZE, OSD_HOR_SLIDER, vlc_player_osd_HoldAll(), vlc_player_osd_ReleaseAll(), vlc_player_vout_IsFullscreen(), VLC_TICK_INVALID, vlc_tick_to_str(), vouts_osd_Message(), and vouts_osd_Slider().
Referenced by vlc_player_DisplayPosition(), vlc_player_input_SeekByPos(), and vlc_player_input_SeekByTime().
void vlc_player_osd_Program | ( | vlc_player_t * | player, |
const char * | name | ||
) |
References _, name, and vlc_player_osd_Message().
Referenced by vlc_player_SelectProgram().
void vlc_player_osd_Track | ( | vlc_player_t * | player, |
vlc_es_id_t * | id, | ||
bool | select | ||
) |
References _, es_format_category_to_string(), vlc_player_track::name, vlc_es_id_GetCat(), vlc_player_GetTrack(), and vlc_player_osd_Message().
Referenced by vlc_player_SelectEsId().
void vlc_player_osd_Tracks | ( | vlc_player_t * | player, |
vlc_es_id_t *const * | selected, | ||
vlc_es_id_t * | unselect | ||
) |
References _, es_format_category_to_string(), vlc_player_track::name, vlc_memstream::ptr, vlc_player_track::selected, vlc_memstream::stream, unlikely, vlc_es_id_GetCat(), vlc_es_id_GetStrId(), vlc_memstream_close(), vlc_memstream_open(), vlc_memstream_puts(), vlc_player_GetTrack(), and vlc_player_osd_Message().
Referenced by vlc_player_SelectEsIdList(), and vlc_player_UnselectEsId().
void vlc_player_osd_Volume | ( | vlc_player_t * | player, |
bool | mute_action | ||
) |
struct vlc_player_program * vlc_player_program_New | ( | int | id, |
const char * | name | ||
) |
int vlc_player_program_Update | ( | struct vlc_player_program * | prgm, |
int | id, | ||
const char * | name | ||
) |
References vlc_player_program::name, name, VLC_ENOMEM, vlc_player_program_DupTitle(), and VLC_SUCCESS.
Referenced by vlc_player_input_HandleProgramEvent().
struct vlc_player_program * vlc_player_program_vector_FindById | ( | vlc_player_program_vector * | vec, |
int | id, | ||
size_t * | idx | ||
) |
References vlc_player_program_vector::data, vlc_player_program::group_id, and vlc_player_program_vector::size.
Referenced by vlc_player_GetProgram(), vlc_player_input_HandleProgramEvent(), and vlc_player_SelectProgram().
void vlc_player_RemoveTimerSource | ( | vlc_player_t * | player, |
vlc_es_id_t * | es_source | ||
) |
References vlc_player_timer_source::es, vlc_player_timer::lock, vlc_player_timer_source::point, vlc_player_timer::seeking, vlc_player_timer::sources, vlc_player_timer_point::system_date, vlc_player_t::timer, vlc_mutex_lock(), vlc_mutex_unlock(), vlc_player_SendTimerSeek(), VLC_PLAYER_TIMER_TYPE_COUNT, and VLC_TICK_INVALID.
Referenced by vlc_player_input_HandleEsEvent().
void vlc_player_ResetTimer | ( | vlc_player_t * | player | ) |
References vlc_player_timer::input_length, vlc_player_timer::input_normal_time, vlc_player_timer::input_position, vlc_player_timer::last_ts, vlc_player_timer::lock, vlc_player_timer::paused, vlc_player_timer::seek_position, vlc_player_timer::seek_ts, vlc_player_timer::seeking, vlc_player_timer::start_offset, vlc_player_timer::stopping, vlc_player_t::timer, vlc_mutex_lock(), vlc_mutex_unlock(), VLC_TICK_0, and VLC_TICK_INVALID.
Referenced by vlc_player_InitTimer(), and vlc_player_input_HandleState().
struct vlc_player_title_list * vlc_player_title_list_Create | ( | input_title_t *const * | array, |
size_t | count, | ||
int | title_offset, | ||
int | chapter_offset | ||
) |
References vlc_player_title_list::array, vlc_player_title::chapter_count, vlc_player_title::chapters, count, vlc_player_title_list::count, vlc_player_title::flags, input_title_t::i_flags, input_title_t::i_length, input_title_t::i_seekpoint, seekpoint_t::i_time_offset, input_title_GetName(), vlc_player_title::length, vlc_player_chapter::name, vlc_player_title::name, vlc_player_title_list::rc, input_title_t::seekpoint, seekpoint_GetName(), vlc_player_chapter::time, vlc_alloc(), vlc_atomic_rc_init(), and vlc_player_title_list_Release().
Referenced by vlc_player_input_HandleTitleEvent().
void vlc_player_track_priv_Delete | ( | struct vlc_player_track_priv * | trackpriv | ) |
References es_format_Clean(), vlc_player_track::es_id, vlc_player_track::fmt, vlc_player_track::name, vlc_player_track_priv::t, and vlc_es_id_Release().
Referenced by vlc_player_input_HandleEsEvent(), and vlc_player_track_Delete().
struct vlc_player_track_priv * vlc_player_track_priv_New | ( | vlc_es_id_t * | id, |
const char * | name, | ||
const es_format_t * | fmt | ||
) |
References vlc_player_track_priv::delay, es_format_Copy(), vlc_player_track::es_id, vlc_player_track::fmt, vlc_player_track::name, name, vlc_player_track::selected, vlc_player_track_priv::selected_by_user, strdup(), vlc_player_track_priv::t, vlc_es_id_Hold(), VLC_SUCCESS, VLC_TICK_MAX, VLC_VOUT_ORDER_NONE, vlc_player_track_priv::vout, and vlc_player_track_priv::vout_order.
Referenced by vlc_player_input_HandleEsEvent(), and vlc_player_track_Dup().
int vlc_player_track_priv_Update | ( | struct vlc_player_track_priv * | trackpriv, |
const char * | name, | ||
const es_format_t * | fmt | ||
) |
References es_format_Clean(), es_format_Copy(), vlc_player_track::fmt, vlc_player_track::name, name, strdup(), vlc_player_track_priv::t, VLC_ENOMEM, and VLC_SUCCESS.
Referenced by vlc_player_input_HandleEsEvent().
struct vlc_player_track_priv * vlc_player_track_vector_FindById | ( | vlc_player_track_vector * | vec, |
vlc_es_id_t * | id, | ||
size_t * | idx | ||
) |
void vlc_player_UpdateMLStates | ( | vlc_player_t * | player, |
struct vlc_player_input * | input | ||
) |
References vlc_ml_playback_states_all::aspect_ratio, AUDIO_ES, vlc_ml_playback_states_all::crop, vlc_ml_playback_states_all::current_audio_track, vlc_ml_playback_states_all::current_subtitle_track, vlc_ml_playback_states_all::current_title, vlc_ml_playback_states_all::current_video_track, vlc_ml_playback_states_all::deinterlace, vlc_player_track::es_id, vlc_ml_media_t::i_id, vlc_ml_media_t::i_type, input_GetItem(), vlc_player_input::ml, vlc_player_t::obj, vlc_object_internals::parent, vlc_player_input::position, vlc_object_t::priv, input_item_t::psz_uri, vlc_ml_playback_states_all::rate, vlc_player_input::rate, vlc_player_track::selected, SPU_ES, vlc_player_input::states, vlc_player_track_priv::t, vlc_player_input::thread, vlc_player_input::title_selected, var_GetBool(), var_GetFloat(), var_GetNonEmptyString(), VIDEO_ES, vlc_ml_playback_states_all::video_filter, vlc_player_input::video_track_vector, vlc_ml_get_media_by_mrl(), vlc_ml_instance_get, vlc_ml_media_set_all_playback_states(), VLC_ML_MEDIA_TYPE_UNKNOWN, vlc_ml_media_update_progress(), vlc_ml_new_external_media(), vlc_ml_release, vlc_object_instance, vlc_player_CompareAssignState(), vlc_player_GetEsIdVout(), vlc_player_input_GetSelectedTrackStringIds(), vlc_player_UpdateMediaType(), vlc_vector_foreach, VLC_VOUT_ORDER_PRIMARY, vlc_player_track_priv::vout, and vlc_ml_playback_states_all::zoom.
Referenced by vlc_player_destructor_Thread().
void vlc_player_UpdateTimer | ( | vlc_player_t * | player, |
vlc_es_id_t * | es_source, | ||
bool | es_source_is_master, | ||
const struct vlc_player_timer_point * | point, | ||
vlc_tick_t | normal_time, | ||
unsigned | frame_rate, | ||
unsigned | frame_rate_base, | ||
vlc_tick_t | start_offset | ||
) |
References vlc_player_timer_source::frame_rate, vlc_player_timer_source::frame_rate_base, vlc_player_timer::input_length, vlc_player_timer::input_normal_time, vlc_player_timer::input_position, vlc_player_timer::last_ts, vlc_player_timer_point::length, vlc_player_timer::lock, vlc_player_timer::paused, vlc_player_timer_source::point, vlc_player_timer_point::position, vlc_player_timer::start_offset, vlc_player_timer::stopping, vlc_player_timer_point::system_date, vlc_player_t::timer, vlc_player_timer_point::ts, vlc_mutex_lock(), vlc_mutex_unlock(), vlc_player_UpdateTimerBestSource(), vlc_player_UpdateTimerSmpteSource(), VLC_TICK_0, VLC_TICK_INVALID, and VLC_TICK_MAX.
Referenced by input_thread_Events().
void vlc_player_UpdateTimerEvent | ( | vlc_player_t * | player, |
vlc_es_id_t * | es_source, | ||
enum vlc_player_timer_event | event, | ||
vlc_tick_t | system_date | ||
) |
References vlc_player_timer_id::cbs, vlc_player_timer_id::data, vlc_player_timer_source::es, vlc_player_timer_id::last_update_date, vlc_player_timer_source::listeners, vlc_player_timer::lock, vlc_player_timer_cbs::on_paused, vlc_player_timer::paused, vlc_player_timer_source::point, vlc_player_timer::seeking, vlc_player_timer::sources, vlc_player_timer::stopping, vlc_player_timer_point::system_date, vlc_player_t::timer, vlc_assert_unreachable, vlc_list_foreach, vlc_mutex_lock(), vlc_mutex_unlock(), vlc_player_SendTimerSeek(), VLC_PLAYER_TIMER_EVENT_DISCONTINUITY, VLC_PLAYER_TIMER_EVENT_PAUSED, VLC_PLAYER_TIMER_EVENT_PLAYING, VLC_PLAYER_TIMER_EVENT_STOPPING, VLC_PLAYER_TIMER_TYPE_COUNT, and VLC_TICK_INVALID.
Referenced by input_thread_Events(), and vlc_player_input_HandleState().
void vlc_player_UpdateTimerSeekState | ( | vlc_player_t * | player, |
vlc_tick_t | time, | ||
double | position | ||
) |
References vlc_player_timer_point::length, vlc_player_timer::lock, vlc_player_timer_source::point, vlc_player_timer_point::position, vlc_player_timer_point::rate, vlc_player_timer::seek_position, vlc_player_timer::seek_ts, vlc_player_timer::seeking, vlc_player_t::timer, vlc_mutex_lock(), vlc_mutex_unlock(), vlc_player_SendTimerSeek(), VLC_TICK_INVALID, and VLC_TICK_MAX.
Referenced by vlc_player_input_SeekByPos(), and vlc_player_input_SeekByTime().
void vlc_player_vout_AddCallbacks | ( | vlc_player_t * | player, |
vout_thread_t * | vout | ||
) |
References ARRAY_SIZE, osd_vars, var_AddCallback(), vlc_player_vout_OSDCallback(), and vlc_player_VoutCallback().
Referenced by vlc_player_input_HandleVoutEvent().
void vlc_player_vout_DelCallbacks | ( | vlc_player_t * | player, |
vout_thread_t * | vout | ||
) |
References ARRAY_SIZE, osd_vars, var_DelCallback(), vlc_player_vout_OSDCallback(), and vlc_player_VoutCallback().
Referenced by vlc_player_input_HandleVoutEvent().
int vlc_player_vout_OSDCallback | ( | vlc_object_t * | this, |
const char * | var, | ||
vlc_value_t | oldval, | ||
vlc_value_t | newval, | ||
void * | data | ||
) |
References _, vlc_value_t::b_bool, vlc_value_t::f_float, vlc_value_t::i_int, vlc_value_t::psz_string, var, var_GetInteger(), var_GetString(), VLC_SUCCESS, VLC_UNUSED, VLC_VAR_FLOAT, VLC_VAR_STRING, vout_osd_PrintVariableText(), and vouts_osd_Message().
Referenced by vlc_player_vout_AddCallbacks(), and vlc_player_vout_DelCallbacks().