diff options
author | 2010-05-29 17:15:55 +0300 | |
---|---|---|
committer | 2010-05-29 17:20:44 +0300 | |
commit | 1888e57af7e1ce51517ad9bdc2d201eaf84a98d2 (patch) | |
tree | f1c87c4a44a38ee5d2adc35719beec3c3213c723 /stream | |
parent | ba5f104836b487d70b0ab107fb7a1325566504ad (diff) |
cosmetics: "struct vf_instance* vf" -> "struct vf_instance *vf"
Change 'struct vf_instance' pointer arguments to more standard style
as in the subject. Also some other minor formatting fixes.
Patch by Diego Biurrun.
Diffstat (limited to 'stream')
-rw-r--r-- | stream/cache2.c | 9 | ||||
-rw-r--r-- | stream/stream_dvd.c | 9 | ||||
-rw-r--r-- | stream/stream_vstream.c | 2 |
3 files changed, 13 insertions, 7 deletions
diff --git a/stream/cache2.c b/stream/cache2.c index e0f67dd9d4..7afcbf1b5b 100644 --- a/stream/cache2.c +++ b/stream/cache2.c @@ -88,13 +88,15 @@ static int min_fill=0; int cache_fill_status=0; -static 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); } -static 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; @@ -140,7 +142,8 @@ static int cache_read(cache_vars_t* s,unsigned char* buf,int size){ return total; } -static 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; diff --git a/stream/stream_dvd.c b/stream/stream_dvd.c index a006047871..27c0350d22 100644 --- a/stream/stream_dvd.c +++ b/stream/stream_dvd.c @@ -212,7 +212,8 @@ static int dvd_next_cell(dvd_priv_t *d) { return next_cell; } -static 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) { @@ -332,7 +333,8 @@ read_next: return d->cur_pack-1; } -static 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; @@ -370,7 +372,8 @@ static void dvd_seek(dvd_priv_t *d,int pos) { d->angle_seek=1; } -static 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); diff --git a/stream/stream_vstream.c b/stream/stream_vstream.c index 6c2de6f49a..3bc096f71b 100644 --- a/stream/stream_vstream.c +++ b/stream/stream_vstream.c @@ -94,7 +94,7 @@ static int seek(stream_t *s,off_t newpos) { return 1; } -static int control(struct stream *s,int cmd,void *arg) { +static int control(struct stream *s, int cmd, void *arg) { return STREAM_UNSUPPORTED; } |