changeset 21333:9e3860c22d99

cosmetical reformatting
author nicodvb
date Mon, 27 Nov 2006 23:25:08 +0000
parents 7f53c807d593
children 6460b4f44089
files stream/stream_dvdnav.c
diffstat 1 files changed, 14 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- a/stream/stream_dvdnav.c	Mon Nov 27 23:21:23 2006 +0000
+++ b/stream/stream_dvdnav.c	Mon Nov 27 23:25:08 2006 +0000
@@ -250,9 +250,10 @@
         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 @@
   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;
 }