[vlc-devel] [PATCH] 3-of-3: vlc-1.1.0 decoder buffer state

Frank Enderle frank.enderle at anamica.de
Thu Jun 24 00:38:45 CEST 2010


Hi,

I'd like to subit the following patch against the VLC-1.1.0 release.

-----
Summary

Add a new function to query the decoder buffer state through
libvlc_media_player

Description

In my current project I had the need to know how much of a stream is
left in the decoder buffers. I added a function which exposes
input_DecoderGetFifoState() to the libvlc_media_player interface. I'm
not sure if I took care of everything. The patch works for me, but it
could be for sure reviewed by someone who has a deeper knowledge of vlc
than me (I'm really new to this, started just a few days back).

New Function:

void libvlc_media_player_get_buffer_state( p_mi, pi_count, pi_size,
pi_length );

- p_mi: the Media Player
- pi_count: pointer to int to receive count of buffer items or NULL
- pi_size: pointer to size_t to receive size of buffer in bytes or NULL
- pi_length: pointer to libvlc_time_t to receive bufferlength in ms or NULL
-----

Cheers,

Frank

-- 
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: vlc-1.1.0-fifo-state.diff
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20100624/e101821a/attachment.ksh>


More information about the vlc-devel mailing list