summaryrefslogtreecommitdiff
path: root/src/demuxers
diff options
context:
space:
mode:
authorStefan Holst <holstsn@users.sourceforge.net>2005-02-03 23:18:33 +0000
committerStefan Holst <holstsn@users.sourceforge.net>2005-02-03 23:18:33 +0000
commit484a83b43658b3b0a6e06bc97eec9395e8917322 (patch)
treec6ff6d1d3932f99667e8584568178aba7bcc2ad1 /src/demuxers
parenta24e8ab569599c0ed5782211383a23b85e3ad45f (diff)
downloadxine-lib-484a83b43658b3b0a6e06bc97eec9395e8917322.tar.gz
xine-lib-484a83b43658b3b0a6e06bc97eec9395e8917322.tar.bz2
make the image decoder use imagemagick to decode images. slight improvements of image dummy demuxer which now sends proper end-of-frame flags
CVS patchset: 7381 CVS date: 2005/02/03 23:18:33
Diffstat (limited to 'src/demuxers')
-rw-r--r--src/demuxers/Makefile.am2
-rw-r--r--src/demuxers/demux_image.c17
2 files changed, 10 insertions, 9 deletions
diff --git a/src/demuxers/Makefile.am b/src/demuxers/Makefile.am
index eff9538b2..043efe6ca 100644
--- a/src/demuxers/Makefile.am
+++ b/src/demuxers/Makefile.am
@@ -18,7 +18,7 @@ if HAVE_LIBMNG
mng_module = xineplug_dmx_mng.la
endif
-if HAVE_LIBPNG
+if HAVE_WAND
image_module = xineplug_dmx_image.la
endif
diff --git a/src/demuxers/demux_image.c b/src/demuxers/demux_image.c
index 5c2a860c2..c7c869c9d 100644
--- a/src/demuxers/demux_image.c
+++ b/src/demuxers/demux_image.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2003 the xine project
+ * Copyright (C) 2003-2005 the xine project
*
* This file is part of xine, a free video player.
*
@@ -19,7 +19,7 @@
*/
/*
- * $Id: demux_image.c,v 1.15 2004/06/13 21:28:53 miguelfreitas Exp $
+ * $Id: demux_image.c,v 1.16 2005/02/03 23:18:34 holstsn Exp $
*
* image dummy demultiplexer
*/
@@ -74,13 +74,14 @@ static int demux_image_send_chunk (demux_plugin_t *this_gen) {
buf->size = this->input->read (this->input, buf->mem, buf->max_size-1);
if (buf->size <= 0) {
- buf->free_buffer(buf);
- xine_usec_sleep(250000);
+ buf->size = 0;
+ buf->decoder_flags |= BUF_FLAG_FRAME_END;
+ this->status = DEMUX_FINISHED;
} else {
- lprintf("got %i bytes\n", buf->size);
- this->video_fifo->put (this->video_fifo, buf);
+ this->status = DEMUX_OK;
}
- this->status = DEMUX_OK;
+ this->video_fifo->put (this->video_fifo, buf);
+
return this->status;
}
@@ -196,7 +197,7 @@ static char *get_identifier (demux_class_t *this_gen) {
}
static char *get_extensions (demux_class_t *this_gen) {
- return "png";
+ return "png gif jpg jpeg";
}
static char *get_mimetypes (demux_class_t *this_gen) {