summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphintuka <phintuka>2009-10-19 11:27:11 +0000
committerphintuka <phintuka>2009-10-19 11:27:11 +0000
commit610d20dbf0d738afddc2d65a0f978a18f6709edc (patch)
treef992786c2db6761858c4c0622436981450d5ce97
parent1bfe1486d0c5c5b1437dbfc6245c0de448cd7558 (diff)
downloadxineliboutput-610d20dbf0d738afddc2d65a0f978a18f6709edc.tar.gz
xineliboutput-610d20dbf0d738afddc2d65a0f978a18f6709edc.tar.bz2
(Cosmetics:) Copy palette only if all objects have been found
-rw-r--r--xine/BluRay/decode_spuhdmv.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/xine/BluRay/decode_spuhdmv.c b/xine/BluRay/decode_spuhdmv.c
index bd1587f6..bae201e8 100644
--- a/xine/BluRay/decode_spuhdmv.c
+++ b/xine/BluRay/decode_spuhdmv.c
@@ -643,11 +643,6 @@ static int show_overlay(spuhdmv_decoder_t *this, composition_object_t *cobj, uin
return -1;
}
- /* copy palette to xine overlay */
- overlay.rgb_clut = 0;
- memcpy(overlay.color, clut->color, sizeof(uint32_t) * 256);
- memcpy(overlay.trans, clut->trans, sizeof(uint8_t) * 256);
-
/* find RLE image */
subtitle_object_t *obj = this->objects;
while (obj && obj->id != cobj->object_id_ref)
@@ -666,6 +661,11 @@ static int show_overlay(spuhdmv_decoder_t *this, composition_object_t *cobj, uin
return -1;
}
+ /* copy palette to xine overlay */
+ overlay.rgb_clut = 0;
+ memcpy(overlay.color, clut->color, sizeof(uint32_t) * 256);
+ memcpy(overlay.trans, clut->trans, sizeof(uint8_t) * 256);
+
/* copy and crop RLE image to xine overlay */
overlay.width = obj->width;
overlay.height = obj->height;