Skip to content
Snippets Groups Projects
Commit ee748458 authored by Steve Lhomme's avatar Steve Lhomme
Browse files

picture_chain: add vlc_picture_chain_PeekFront

In some rare case we may want to check the picture at the top of the chain/FIFO
without popping it.
parent 474c9039
No related branches found
Tags 3.5.0
No related merge requests found
......@@ -190,6 +190,18 @@ static inline picture_t * vlc_picture_chain_PopFront(picture_t **chain)
return front;
}
/**
* Peek the front of a picture chain.
*
* The picture chain is unchanged.
*
* \return the front of the picture chain (the picture itself)
*/
static inline picture_t * vlc_picture_chain_PeekFront(picture_t **chain)
{
return *chain;
}
/**
* Append a picture to a picture chain.
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment