[vlc-devel] [PATCH] statistics for libvlc

Frank Enderle frank.enderle at anamica.de
Wed Jul 14 16:36:11 CEST 2010


hi,

i want to submit the following patch. comments are welcome.

cheers

frank

----------------------------------------------
Add libvlc_media_player_get_statistics()

This patch gives libvlc users access to the statistics data which vlc
internally provides. The data is well known from the MediaInfo dialogs
of the gui applications and has some useful information about the
playback state (e.g. played samples, read input bytes, demuxing, etc.).

Additionally a new event is added to signal libvlc applications that the
statistics had been updated (exposes INPUT_EVENT_STATISTICS).

This function has been implemented to give applications using libvlc the
ability to check if everything's going well (watchdog function) and
being able to detect when the input is dying or the decoder is not
working correctly. Of course it can also be used for displaying
statistic data.
----------------------------------------------


-- 
Dipl.-Ing. (FH) Frank Enderle

anamica UG (haftungsbeschränkt)
Beinsteinerstr. 6
71334 Waiblingen

Telefon:  +49 151 14981091
Telefax:  +49 7151 1335770
E-Mail:   frank.enderle at anamica.de
Internet: www.anamica.de

Handelsregister: AG Stuttgart HRB 732357
Geschäftsführer: Yvonne Holzwarth, Frank Enderle
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: libvlc_media_player_get_statistics-git.diff
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20100714/cbf7397d/attachment.ksh>


More information about the vlc-devel mailing list