diff options
author | nicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-11-27 23:25:08 +0000 |
---|---|---|
committer | nicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-11-27 23:25:08 +0000 |
commit | 94ec6dbf3101307095334d2c9e7b81636e450cbb (patch) | |
tree | 9be10d2879fb0ee5fb1f191bf3649384733b8be8 | |
parent | dfdc991901369baf9b19ec9f6aaf4a6d20da0934 (diff) |
cosmetical reformatting
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21349 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | stream/stream_dvdnav.c | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/stream/stream_dvdnav.c b/stream/stream_dvdnav.c index 1ed36062c8..cbad3cab3b 100644 --- a/stream/stream_dvdnav.c +++ b/stream/stream_dvdnav.c @@ -250,9 +250,10 @@ static int fill_buffer(stream_t *s, char *but, int len) return 0; } switch (event) { - case DVDNAV_STOP: return len; - case DVDNAV_BLOCK_OK: return len; - case DVDNAV_NAV_PACKET: return len; + case DVDNAV_STOP: + case DVDNAV_BLOCK_OK: + case DVDNAV_NAV_PACKET: + return len; case DVDNAV_VTS_CHANGE: { int tit = 0, part = 0; s->end_pos = 0; @@ -472,17 +473,17 @@ int dvdnav_sid_from_lang(stream_t *stream, unsigned char *language) { uint16_t lang, lcode; while(language && strlen(language)>=2) { - lcode = (language[0] << 8) | (language[1]); - for(k=0; k<32; k++) { - lg = dvdnav_get_spu_logical_stream(priv->dvdnav, k); - if(lg == 0xff) continue; - lang = dvdnav_spu_stream_to_lang(priv->dvdnav, lg); - if(lang != 0xFFFF && lang == lcode) { - return k; + lcode = (language[0] << 8) | (language[1]); + for(k=0; k<32; k++) { + lg = dvdnav_get_spu_logical_stream(priv->dvdnav, k); + if(lg == 0xff) continue; + lang = dvdnav_spu_stream_to_lang(priv->dvdnav, lg); + if(lang != 0xFFFF && lang == lcode) { + return k; + } } - } - language += 2; - while(language[0]==',' || language[0]==' ') ++language; + language += 2; + while(language[0]==',' || language[0]==' ') ++language; } return -1; } |