Browse Source

Added a missing block_BytestreamEmpty helper.

pull/2/head
Laurent Aimar 18 years ago
parent
commit
d042c1292f
  1. 13
      include/vlc_block_helper.h

13
include/vlc_block_helper.h

@ -60,6 +60,19 @@ static inline void block_BytestreamRelease( block_bytestream_t *p_bytestream )
p_bytestream->p_chain = p_bytestream->p_block = NULL;
}
/**
* It flush all data (read and unread) from a block_bytestream_t.
*/
static inline void block_BytestreamEmpty( block_bytestream_t *p_bytestream )
{
block_BytestreamRelease( p_bytestream );
*p_bytestream = block_BytestreamInit();
}
/**
* It flushes all already read data from a block_bytestream_t.
*/
static inline void block_BytestreamFlush( block_bytestream_t *p_bytestream )
{
while( p_bytestream->p_chain != p_bytestream->p_block )

Loading…
Cancel
Save