Commits on Source (3)
-
Thomas Guillem authored
This will be used by libvlc_media to store the media instance into an input_item. This will allow to get the media corresponding to an item when propagating media events.
10580111 -
Thomas Guillem authored
- Don't override the media set by the user from on_current_media_changed(). - Don't create a new media from an input_item. This will prevent to send media events with a media pointer that is unknown to the caller. This callback is now always sending a media that is set with libvlc_media_player_set_media(). Since the player is now fully asynchronous, a call to set_media() + play() will be processed asynchronously if an older media is playing. The user might want to know when its new media is actually playing. Listening to the libvlc_MediaPlayerMediaChanged event is only way to do so. Here is an example: 1. set_media(A) && play() -> get_media() -> A 2. set_media(B) && play() -> get_media() -> B 3. libvlc_MediaPlayerMediaChanged(A) -> get_media() -> B 4. libvlc_MediaPlayerMediaChanged(B) -> get_media() -> B
0fbeacc2 -
Thomas Guillem authored
The new duplicated media should not share events of the orignal one. Ie. parsing the original media should not trigger updates on the duplicated media.
Showing
- include/vlc/libvlc_media.h 3 additions, 0 deletionsinclude/vlc/libvlc_media.h
- include/vlc/libvlc_media_player.h 10 additions, 1 deletioninclude/vlc/libvlc_media_player.h
- include/vlc_input_item.h 3 additions, 0 deletionsinclude/vlc_input_item.h
- lib/media.c 6 additions, 2 deletionslib/media.c
- lib/media_player.c 6 additions, 22 deletionslib/media_player.c