[vlc-devel] [PATCH] -- media_list and media_list_player (update)

brezhoneg1 brezhoneg1 at yahoo.fr
Wed Dec 10 17:21:53 CET 2008

The patch is a new attempt to fully implement media_list and
media_list_player in Libvlc api.

Changes include:

- several memory issues (segfault) corrected
- several refcount problems (use of xxx_retain and xxx_release)
- full implementation of event_manager for media_list_player 
- fix libvlc_media_list_player_next deadlock issue.
- Two functions added and made public

The deadlock issue is dealt with by creating a permanent thread attached
to media_list_player. (vlc_clone at media_list_player creation, vlc_join
at release). This thread waits for a signal from EndReached callback
event, and launches the next item.

Two functions have been added (made public) to the libvlc api :
- "libvlc_media_list_player_event_manager":
  This function is required to attach to events. (Up to now, it was
- "libvlc_media_list_player_get_media_player":
  media_list_player automatically creates a media_player. End_user may
need it to retrieve information about the current media being played
(position, time, ...).

Events associated with media_list_player have been updated (2 added, 1
name change) for better understanding. 

As I'm sure there will be more remarks to come, please tell me (don't
just say it is a bad patch! :(   ).

Patch has been heavily tested (test programs available if needed)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-This-patch-fixes-media_list-and-media_list_player.patch
Type: application/octet-stream
Size: 29095 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20081210/1198ad6d/attachment.obj>

More information about the vlc-devel mailing list