summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/libdivx4/xine_decoder.c5
-rw-r--r--src/libdts/xine_decoder.c6
-rw-r--r--src/libffmpeg/xine_decoder.c5
-rw-r--r--src/libvorbis/xine_decoder.c5
-rw-r--r--src/libw32dll/w32codec.c8
5 files changed, 24 insertions, 5 deletions
diff --git a/src/libdivx4/xine_decoder.c b/src/libdivx4/xine_decoder.c
index 249d37393..45acd356a 100644
--- a/src/libdivx4/xine_decoder.c
+++ b/src/libdivx4/xine_decoder.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: xine_decoder.c,v 1.22 2002/03/22 17:38:21 miguelfreitas Exp $
+ * $Id: xine_decoder.c,v 1.23 2002/04/01 17:59:40 miguelfreitas Exp $
*
* xine decoder plugin using divx4
*
@@ -363,6 +363,9 @@ static void divx4_decode_data (video_decoder_t *this_gen, buf_element_t *buf) {
printf ("divx4: decoding buffer %08x, flags = %08x\n", buf, buf->decoder_flags);
#endif
+ if (buf->decoder_flags & BUF_FLAG_PREVIEW)
+ return;
+
if (buf->decoder_flags & BUF_FLAG_HEADER) { /* need to initialize */
/* only proceed if version is good and initialization succeeded */
diff --git a/src/libdts/xine_decoder.c b/src/libdts/xine_decoder.c
index b45dcf5c8..215c32092 100644
--- a/src/libdts/xine_decoder.c
+++ b/src/libdts/xine_decoder.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: xine_decoder.c,v 1.15 2002/03/11 12:31:25 guenter Exp $
+ * $Id: xine_decoder.c,v 1.16 2002/04/01 17:59:41 miguelfreitas Exp $
*
* 04-09-2001 DTS passtrough (C) Joachim Koenig
* 09-12-2001 DTS passthrough inprovements (C) James Courtier-Dutton
@@ -104,6 +104,10 @@ void dts_decode_data (audio_decoder_t *this_gen, buf_element_t *buf) {
}
if (!this->output_open)
return;
+
+ if (buf->decoder_flags & BUF_FLAG_PREVIEW)
+ return;
+
number_of_frames = buf->decoder_info[1]; /* Number of frames */
first_access_unit = buf->decoder_info[2]; /* First access unit */
diff --git a/src/libffmpeg/xine_decoder.c b/src/libffmpeg/xine_decoder.c
index c03da5188..f65dfe443 100644
--- a/src/libffmpeg/xine_decoder.c
+++ b/src/libffmpeg/xine_decoder.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: xine_decoder.c,v 1.28 2002/03/17 19:11:10 guenter Exp $
+ * $Id: xine_decoder.c,v 1.29 2002/04/01 17:59:47 miguelfreitas Exp $
*
* xine decoder plugin using ffmpeg
*
@@ -138,6 +138,9 @@ static void ff_decode_data (video_decoder_t *this_gen, buf_element_t *buf) {
buf->type, buf, buf->decoder_flags);
#endif
+ if (buf->decoder_flags & BUF_FLAG_PREVIEW)
+ return;
+
if (buf->decoder_flags & BUF_FLAG_HEADER) {
AVCodec *codec = NULL;
diff --git a/src/libvorbis/xine_decoder.c b/src/libvorbis/xine_decoder.c
index 4e85b0678..26df1f494 100644
--- a/src/libvorbis/xine_decoder.c
+++ b/src/libvorbis/xine_decoder.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: xine_decoder.c,v 1.6 2002/02/09 07:13:24 guenter Exp $
+ * $Id: xine_decoder.c,v 1.7 2002/04/01 18:00:13 miguelfreitas Exp $
*
* (ogg/)vorbis audio decoder plugin (libvorbis wrapper) for xine
*/
@@ -100,6 +100,9 @@ static void vorbis_decode_data (audio_decoder_t *this_gen, buf_element_t *buf) {
printf ("vorbisdecoder: before buf=%08x content=%08x op=%08x packet=%08x\n",
buf, buf->content, op, op->packet);
*/
+
+ if (buf->decoder_flags & BUF_FLAG_PREVIEW)
+ return;
/* if (buf->decoder_info[0] >0) { */
diff --git a/src/libw32dll/w32codec.c b/src/libw32dll/w32codec.c
index b0bcfc103..d675aeb0d 100644
--- a/src/libw32dll/w32codec.c
+++ b/src/libw32dll/w32codec.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: w32codec.c,v 1.68 2002/03/22 21:57:16 miguelfreitas Exp $
+ * $Id: w32codec.c,v 1.69 2002/04/01 18:01:17 miguelfreitas Exp $
*
* routines for using w32 codecs
* DirectShow support by Miguel Freitas (Nov/2001)
@@ -599,6 +599,9 @@ static void w32v_decode_data (video_decoder_t *this_gen, buf_element_t *buf) {
printf ("w32codec: processing packet type = %08x, buf->decoder_flags=%08x\n",
buf->type, buf->decoder_flags);
#endif
+
+ if (buf->decoder_flags & BUF_FLAG_PREVIEW)
+ return;
if (buf->decoder_flags & BUF_FLAG_HEADER) {
if ( buf->type & 0xff )
@@ -1194,6 +1197,9 @@ static void w32a_decode_data (audio_decoder_t *this_gen, buf_element_t *buf) {
w32a_decoder_t *this = (w32a_decoder_t *) this_gen;
+ if (buf->decoder_flags & BUF_FLAG_PREVIEW)
+ return;
+
if (buf->decoder_flags & BUF_FLAG_HEADER) {
/* init package containing bih */