mirror of https://code.videolan.org/videolan/vlc
lib: event: add back i_id in media_player_es_changed
To keep compability with the old track API since VLC's ports are still using it. This will be removed when the old track API is removed.
This commit is contained in:
parent
4ed6b01762
commit
08d3c0a9f6
|
@ -356,6 +356,7 @@ typedef struct libvlc_event_t
|
|||
struct
|
||||
{
|
||||
libvlc_track_type_t i_type;
|
||||
int i_id; /**< Deprecated, use psz_id */
|
||||
/** Call libvlc_media_player_get_track_from_id() to get the track
|
||||
* description. */
|
||||
const char *psz_id;
|
||||
|
|
|
@ -263,6 +263,7 @@ on_track_list_changed(vlc_player_t *player, enum vlc_player_list_action action,
|
|||
|
||||
event.u.media_player_es_changed.i_type =
|
||||
track_type_from_cat(track->fmt.i_cat);
|
||||
event.u.media_player_es_changed.i_id = vlc_es_id_GetInputId(track->es_id);
|
||||
event.u.media_player_es_changed.psz_id = vlc_es_id_GetStrId(track->es_id);
|
||||
|
||||
libvlc_event_send(&mp->event_manager, &event);
|
||||
|
|
Loading…
Reference in New Issue