[vlc-devel] [PATCH] statistics for libvlc

Frank Enderle frank.enderle at anamica.de
Wed Jul 14 19:32:15 CEST 2010

> but what I quickly looked you made libvlc_statistics_t same structure
> as input_stats_t so it should be problem.

i did this because input_stats_t is not public (at least its not
anywhere in /usr/include/vlc/*, so i suppose it's private). the
structures are almost the same. the only thing missing in
libvlc_statistics_t is the mutex since it's just a snapshot anyway.

Am 14.07.2010 19:13, schrieb Ilkka Ollakka:
> On Wed, Jul 14, 2010 at 06:04:41PM +0200, Frank Enderle wrote:
>> i see. i didn't know that there's such a function. do you think it would
>> be a better idea to return the stats structure directly without copying?
>> - i wanted to hide the mutex from the user, but maybe this is not
>> necessary at all?
> stats_ComputeInputStats sets values to given p_stat structure.
> NewInputStats() resets stats to 0, so I don't think it should be used in
> this case. ComputeInputStats needs input_stats_t * as second parameter,
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> http://mailman.videolan.org/listinfo/vlc-devel

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

More information about the vlc-devel mailing list