changeset 33618:bdfb1aeb4b41

tvi_dshow: Mark functions not used outside of the file as static.
author diego
date Wed, 22 Jun 2011 13:48:31 +0000
parents c77bf171b354
children 35a12ef532de
files stream/tvi_dshow.c
diffstat 1 files changed, 10 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- 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;