[libbluray-devel] updated xine plugin: Cosmetics

hpi1 git at videolan.org
Thu Jun 9 11:04:35 CEST 2011


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Thu Jun  9 10:14:20 2011 +0300| [b1452803ec9b8064afa4844d3eaa43671b9bf47f] | committer: hpi1

updated xine plugin: Cosmetics

> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=b1452803ec9b8064afa4844d3eaa43671b9bf47f
---

 player_wrappers/xine/input_bluray.c |   26 +++++++++++++-------------
 1 files changed, 13 insertions(+), 13 deletions(-)

diff --git a/player_wrappers/xine/input_bluray.c b/player_wrappers/xine/input_bluray.c
index be67c4a..c71ba0d 100644
--- a/player_wrappers/xine/input_bluray.c
+++ b/player_wrappers/xine/input_bluray.c
@@ -168,27 +168,27 @@ static void overlay_proc(void *this_gen, const BD_OVERLAY * const ov)
   if (ov->palette) {
     uint32_t color[256];
     uint8_t  trans[256];
-  for(i = 0; i < 256; i++) {
-    trans[i] = ov->palette[i].T;
-    color[i] = (ov->palette[i].Y << 16) | (ov->palette[i].Cr << 8) | ov->palette[i].Cb;
-  }
+    for(i = 0; i < 256; i++) {
+      trans[i] = ov->palette[i].T;
+      color[i] = (ov->palette[i].Y << 16) | (ov->palette[i].Cr << 8) | ov->palette[i].Cb;
+    }
 
-  xine_osd_set_palette(this->osd, color, trans);
+    xine_osd_set_palette(this->osd, color, trans);
   }
 
   /* uncompress and draw bitmap */
   if (ov->img) {
-  const BD_PG_RLE_ELEM *rlep = ov->img;
-  uint8_t *img = malloc(ov->w * ov->h);
-  unsigned pixels = ov->w * ov->h;
+    const BD_PG_RLE_ELEM *rlep = ov->img;
+    uint8_t *img = malloc(ov->w * ov->h);
+    unsigned pixels = ov->w * ov->h;
 
-  for (i = 0; i < pixels; i += rlep->len, rlep++) {
-    memset(img + i, rlep->color, rlep->len);
-  }
+    for (i = 0; i < pixels; i += rlep->len, rlep++) {
+      memset(img + i, rlep->color, rlep->len);
+    }
 
-  xine_osd_draw_bitmap(this->osd, img, ov->x, ov->y, ov->w, ov->h, NULL);
+    xine_osd_draw_bitmap(this->osd, img, ov->x, ov->y, ov->w, ov->h, NULL);
 
-  free(img);
+    free(img);
   }
 
   /* display */



More information about the libbluray-devel mailing list