vlc | branch: master | Thomas Guillem <[email protected]> | Tue May 24 11:19:42 2016 +0200| [9126e33f770a6a2903b80967eeea395b859b70c9] | committer: Thomas Guillem
libvlc: merge libvlc_MediaParsedStatus and libvlc_MediaParsedCharged events Because having two differents events for the same objective is way too confusing (libvlc_MediaParsedStatus was recently added by me). libvlc_MediaParsedCharged is now always sent after a call to libvlc_media_parse_*() (this was not the case if the pre-parsing was skipped). The core vlc_InputItemPreparsedChanged event is now only attached from the media player. This allows the libvlc_MediaParsedCharged event to be sent when a media is parsed from a media player. /!\ Behavior change in libvlc API /!\ The libvlc_event_t.u.media_parsed_changed.new_status value changed, this is now a libvlc_media_parsed_status_t. Before this patch, this value was always set to true, even in case of parse failure/skipped. Now this value can be skipped (1), failed (2) or done (3). There should be no changes for users that were checking if new_status was true, since this events was called for these 3 cases (that are all > 0). > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9126e33f770a6a2903b80967eeea395b859b70c9 --- include/vlc/libvlc_events.h | 7 +--- include/vlc/libvlc_media.h | 14 +++---- lib/event.c | 1 - lib/media.c | 98 ++++++++++++++++++------------------------- lib/media_internal.h | 2 +- lib/media_player.c | 35 ++++++++++++++++ test/libvlc/media.c | 10 ++--- 7 files changed, 90 insertions(+), 77 deletions(-) Diff: http://git.videolan.org/gitweb.cgi/vlc.git/?a=commitdiff;h=9126e33f770a6a2903b80967eeea395b859b70c9 _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
