[MPlayer-cvslog] r30599 - in trunk/stream: cache2.c network.c stream.c stream_dvd.c tv.c

diego subversion at mplayerhq.hu
Tue Feb 16 17:32:38 CET 2010


Author: diego
Date: Tue Feb 16 17:32:38 2010
New Revision: 30599

Log:
stream: Mark functions not used outside of their files as static.

Modified:
   trunk/stream/cache2.c
   trunk/stream/network.c
   trunk/stream/stream.c
   trunk/stream/stream_dvd.c
   trunk/stream/tv.c

Modified: trunk/stream/cache2.c
==============================================================================
--- trunk/stream/cache2.c	Tue Feb 16 17:22:17 2010	(r30598)
+++ trunk/stream/cache2.c	Tue Feb 16 17:32:38 2010	(r30599)
@@ -93,13 +93,15 @@ static int min_fill=0;
 
 int cache_fill_status=0;
 
-void cache_stats(cache_vars_t* s){
+static void cache_stats(cache_vars_t *s)
+{
   int newb=s->max_filepos-s->read_filepos; // new bytes in the buffer
   mp_msg(MSGT_CACHE,MSGL_INFO,"0x%06X  [0x%06X]  0x%06X   ",(int)s->min_filepos,(int)s->read_filepos,(int)s->max_filepos);
   mp_msg(MSGT_CACHE,MSGL_INFO,"%3d %%  (%3d%%)\n",100*newb/s->buffer_size,100*min_fill/s->buffer_size);
 }
 
-int cache_read(cache_vars_t* s,unsigned char* buf,int size){
+static int cache_read(cache_vars_t *s, unsigned char *buf, int size)
+{
   int total=0;
   while(size>0){
     int pos,newb,len;
@@ -145,7 +147,8 @@ int cache_read(cache_vars_t* s,unsigned 
   return total;
 }
 
-int cache_fill(cache_vars_t* s){
+static int cache_fill(cache_vars_t *s)
+{
   int back,back2,newb,space,len,pos;
   off_t read=s->read_filepos;
 

Modified: trunk/stream/network.c
==============================================================================
--- trunk/stream/network.c	Tue Feb 16 17:22:17 2010	(r30598)
+++ trunk/stream/network.c	Tue Feb 16 17:32:38 2010	(r30599)
@@ -464,7 +464,7 @@ void fixup_network_stream_cache(stream_t
 }
 
 
-int
+static int
 streaming_stop( stream_t *stream ) {
 	stream->streaming_ctrl->status = streaming_stopped_e;
 	return 0;

Modified: trunk/stream/stream.c
==============================================================================
--- trunk/stream/stream.c	Tue Feb 16 17:22:17 2010	(r30598)
+++ trunk/stream/stream.c	Tue Feb 16 17:32:38 2010	(r30599)
@@ -140,9 +140,10 @@ static const stream_info_t* const auto_o
   NULL
 };
 
-stream_t* open_stream_plugin(const stream_info_t* sinfo,char* filename,int mode,
-			     char** options, int* file_format, int* ret,
-			     char** redirected_url) {
+static stream_t* open_stream_plugin(const stream_info_t* sinfo, char* filename,
+                                    int mode, char** options, int* file_format,
+                                    int* ret, char** redirected_url)
+{
   void* arg = NULL;
   stream_t* s;
   m_struct_t* desc = (m_struct_t*)sinfo->opts;

Modified: trunk/stream/stream_dvd.c
==============================================================================
--- trunk/stream/stream_dvd.c	Tue Feb 16 17:22:17 2010	(r30598)
+++ trunk/stream/stream_dvd.c	Tue Feb 16 17:32:38 2010	(r30599)
@@ -249,7 +249,8 @@ static int dvd_next_cell(dvd_priv_t *d) 
   return next_cell;
 }
 
-int dvd_read_sector(dvd_priv_t *d,unsigned char* data) {
+static int dvd_read_sector(dvd_priv_t *d, unsigned char *data)
+{
   int len;
 
   if(d->packs_left==0) {
@@ -369,7 +370,8 @@ read_next:
   return d->cur_pack-1;
 }
 
-void dvd_seek(dvd_priv_t *d,int pos) {
+static void dvd_seek(dvd_priv_t *d, int pos)
+{
   d->packs_left=-1;
   d->cur_pack=pos;
 
@@ -407,7 +409,8 @@ void dvd_seek(dvd_priv_t *d,int pos) {
   d->angle_seek=1;
 }
 
-void dvd_close(dvd_priv_t *d) {
+static void dvd_close(dvd_priv_t *d)
+{
   ifoClose(d->vts_file);
   ifoClose(d->vmg_file);
   DVDCloseFile(d->title);

Modified: trunk/stream/tv.c
==============================================================================
--- trunk/stream/tv.c	Tue Feb 16 17:22:17 2010	(r30598)
+++ trunk/stream/tv.c	Tue Feb 16 17:32:38 2010	(r30599)
@@ -354,7 +354,7 @@ int tv_set_norm(tvi_handle_t *tvh, char*
     return 1;
 }
 
-int tv_set_norm_i(tvi_handle_t *tvh, int norm)
+static int tv_set_norm_i(tvi_handle_t *tvh, int norm)
 {
    tvh->norm = norm;
 


More information about the MPlayer-cvslog mailing list