summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoïc Minier <lool@dooz.org>2008-11-29 00:38:29 +0000
committerLoïc Minier <lool@dooz.org>2008-11-29 00:38:29 +0000
commitc3f26e9ecfbaeddbecbb49f80e7995781597fbc4 (patch)
tree86b21b645983c246ede97ab045b3a7c2a1d0063e
parent12c7e7c0bc554781b5785f803755caa6054dc572 (diff)
downloadxine-lib-c3f26e9ecfbaeddbecbb49f80e7995781597fbc4.tar.gz
xine-lib-c3f26e9ecfbaeddbecbb49f80e7995781597fbc4.tar.bz2
Use a regular int instead of MagickBoolType and assume 0 for MagickFalse.
-rw-r--r--src/libxinevdec/image.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libxinevdec/image.c b/src/libxinevdec/image.c
index a4d09a63c..7592e0bb5 100644
--- a/src/libxinevdec/image.c
+++ b/src/libxinevdec/image.c
@@ -97,7 +97,7 @@ static void image_decode_data (video_decoder_t *this_gen, buf_element_t *buf) {
if (buf->decoder_flags & BUF_FLAG_FRAME_END) {
int width, height, i;
- MagickBooleanType status;
+ int status;
MagickWand *wand;
uint8_t *img_buf, *img_buf_ptr;
yuv_planes_t yuv_planes;
@@ -110,7 +110,7 @@ static void image_decode_data (video_decoder_t *this_gen, buf_element_t *buf) {
status = MagickReadImageBlob(wand, this->image, this->index);
this->index = 0;
- if (status == MagickFalse) {
+ if (!status) {
DestroyMagickWand(wand);
lprintf("error loading image\n");
return;