summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuenter Bartsch <guenter@users.sourceforge.net>2002-10-19 19:36:54 +0000
committerGuenter Bartsch <guenter@users.sourceforge.net>2002-10-19 19:36:54 +0000
commit3d2c30a554f67ce071aedf8e1a173d0b4da36d3f (patch)
tree3d26a32ce47d29f90fd6dfaa881564acfcdb20c2
parente1d13adbaceab9f2fbada4c54873a3b4c6cf7c55 (diff)
downloadxine-lib-3d2c30a554f67ce071aedf8e1a173d0b4da36d3f.tar.gz
xine-lib-3d2c30a554f67ce071aedf8e1a173d0b4da36d3f.tar.bz2
more logging
CVS patchset: 2862 CVS date: 2002/10/19 19:36:54
-rw-r--r--src/libffmpeg/xine_decoder.c29
1 files changed, 28 insertions, 1 deletions
diff --git a/src/libffmpeg/xine_decoder.c b/src/libffmpeg/xine_decoder.c
index cbcb4b0e4..444f5bf3b 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.58 2002/10/17 17:43:43 mroi Exp $
+ * $Id: xine_decoder.c,v 1.59 2002/10/19 19:36:54 guenter Exp $
*
* xine decoder plugin using ffmpeg
*
@@ -265,6 +265,11 @@ static void ff_decode_data (video_decoder_t *this_gen, buf_element_t *buf) {
#endif
if (buf->decoder_flags & BUF_FLAG_PREVIEW) {
+
+#ifdef LOG
+ printf ("ffmpeg: preview\n");
+#endif
+
if ( (buf->type & 0xFFFF0000) == BUF_VIDEO_MPEG ) {
find_sequence_header (this, buf->content, buf->content+buf->size);
}
@@ -276,6 +281,10 @@ static void ff_decode_data (video_decoder_t *this_gen, buf_element_t *buf) {
AVCodec *codec = NULL;
int codec_type;
+#ifdef LOG
+ printf ("ffmpeg: header\n");
+#endif
+
/* init package containing bih */
memcpy ( &this->bih, buf->content, sizeof (xine_bmiheader));
@@ -564,15 +573,25 @@ static void ff_decode_data (video_decoder_t *this_gen, buf_element_t *buf) {
}
}
+ } else {
+#ifdef LOG
+ printf ("ffmpeg: data but decoder not initialized (headers missing)\n");
+#endif
}
}
static void ff_flush (video_decoder_t *this_gen) {
+#ifdef LOG
+ printf ("ffmpeg: ff_flush\n");
+#endif
}
static void ff_reset (video_decoder_t *this_gen) {
/* seems to handle seeking quite nicelly without any code here */
+#ifdef LOG
+ printf ("ffmpeg: ff_reset\n");
+#endif
}
void avcodec_register_all(void)
@@ -601,6 +620,10 @@ void avcodec_register_all(void)
static void ff_dispose (video_decoder_t *this_gen) {
ff_decoder_t *this = (ff_decoder_t *) this_gen;
+#ifdef LOG
+ printf ("ffmpeg: ff_dispose\n");
+#endif
+
if (this->decoder_ok) {
avcodec_close (&this->context);
@@ -619,6 +642,10 @@ static video_decoder_t *open_plugin (video_decoder_class_t *class_gen, xine_stre
ff_decoder_t *this ;
+#ifdef LOG
+ printf ("ffmpeg: open_plugin\n");
+#endif
+
this = (ff_decoder_t *) malloc (sizeof (ff_decoder_t));
this->video_decoder.decode_data = ff_decode_data;