# HG changeset patch # User diego # Date 1308750511 0 # Node ID bdfb1aeb4b41147eaf24379068c74247f5ec4fba # Parent c77bf171b354a9147ce7bc7d866233cf183c9722 tvi_dshow: Mark functions not used outside of the file as static. diff -r c77bf171b354 -r bdfb1aeb4b41 stream/tvi_dshow.c --- a/stream/tvi_dshow.c Wed Jun 22 13:48:25 2011 +0000 +++ b/stream/tvi_dshow.c Wed Jun 22 13:48:31 2011 +0000 @@ -506,7 +506,9 @@ * Methods, called only from this file *---------------------------------------------------------------------------------------*/ -void set_buffer_preference(int nDiv,WAVEFORMATEX* pWF,IPin* pOutPin,IPin* pInPin){ +static void set_buffer_preference(int nDiv, WAVEFORMATEX *pWF, + IPin *pOutPin, IPin *pInPin) +{ ALLOCATOR_PROPERTIES prop; IAMBufferNegotiation* pBN; HRESULT hr; @@ -595,9 +597,10 @@ } -HRESULT STDCALL CSampleGrabberCB_BufferCB(ISampleGrabberCB * This, - double SampleTime, - BYTE * pBuffer, long lBufferLen) +static HRESULT STDCALL CSampleGrabberCB_BufferCB(ISampleGrabberCB *This, + double SampleTime, + BYTE *pBuffer, + long lBufferLen) { CSampleGrabberCB *this = (CSampleGrabberCB *) This; grabber_ringbuffer_t *rb = this->pbuf; @@ -629,9 +632,9 @@ } /// wrapper. directshow does the same when BufferCB callback is requested -HRESULT STDCALL CSampleGrabberCB_SampleCB(ISampleGrabberCB * This, - double SampleTime, - LPMEDIASAMPLE pSample) +static HRESULT STDCALL CSampleGrabberCB_SampleCB(ISampleGrabberCB *This, + double SampleTime, + LPMEDIASAMPLE pSample) { char* buf; long len;