diff options
author | Michael Roitzsch <mroi@users.sourceforge.net> | 2004-03-03 20:09:11 +0000 |
---|---|---|
committer | Michael Roitzsch <mroi@users.sourceforge.net> | 2004-03-03 20:09:11 +0000 |
commit | 7cf5530ea749f274bb984e9a9f2c82e426cca645 (patch) | |
tree | 62f784baf42e7dbd0cb28865539803759827fa79 /src/libmpeg2new/xine_decoder.c | |
parent | 6ffb59a745a36b7884e6305c7420e57d87dd894d (diff) | |
download | xine-lib-7cf5530ea749f274bb984e9a9f2c82e426cca645.tar.gz xine-lib-7cf5530ea749f274bb984e9a9f2c82e426cca645.tar.bz2 |
use the _x_abort() macro instead of abort, since it prints some debug info
before aborting
CVS patchset: 6211
CVS date: 2004/03/03 20:09:11
Diffstat (limited to 'src/libmpeg2new/xine_decoder.c')
-rw-r--r-- | src/libmpeg2new/xine_decoder.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/src/libmpeg2new/xine_decoder.c b/src/libmpeg2new/xine_decoder.c index c8503b8c5..3a972057d 100644 --- a/src/libmpeg2new/xine_decoder.c +++ b/src/libmpeg2new/xine_decoder.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2000-2003 the xine project + * Copyright (C) 2000-2004 the xine project * * This file is part of xine, a free video player. * @@ -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.19 2004/01/12 17:35:17 miguelfreitas Exp $ + * $Id: xine_decoder.c,v 1.20 2004/03/03 20:09:13 mroi Exp $ * * stuff needed to turn libmpeg2 into a xine decoder plugin */ @@ -74,7 +74,7 @@ static void mpeg2_video_print_bad_state(uint32_t * img_state) { m++; } } - if (m > 3) abort(); + if (m > 3) _x_abort(); if (m == 0) printf("NO FRAMES\n"); } @@ -206,7 +206,7 @@ static void mpeg2_video_decode_data (video_decoder_t *this_gen, buf_element_t *b #endif if (this->img_state[img->id] != 0) { printf ("libmpeg2:decode_data:get_frame id=%d BAD STATE:%d\n", img->id, this->img_state[img->id]); - abort(); + _x_abort(); } this->img_state[img->id] = 1; @@ -235,7 +235,7 @@ static void mpeg2_video_decode_data (video_decoder_t *this_gen, buf_element_t *b #endif if (this->img_state[img->id] != 1) { printf ("libmpeg2:decode_data:draw_frame id=%d BAD STATE:%d\n", img->id, this->img_state[img->id]); - abort(); + _x_abort(); } if (this->img_state[img->id] == 1) { frame_skipping = img->draw (img, this->stream); @@ -246,7 +246,7 @@ static void mpeg2_video_decode_data (video_decoder_t *this_gen, buf_element_t *b } if (info->discard_fbuf && !info->discard_fbuf->id) { printf ("libmpeg2:decode_data:BAD free_frame discard_fbuf=%p\n", info->discard_fbuf); - abort(); + _x_abort(); } if (info->discard_fbuf && info->discard_fbuf->id) { img = (vo_frame_t *) info->discard_fbuf->id; @@ -255,7 +255,7 @@ static void mpeg2_video_decode_data (video_decoder_t *this_gen, buf_element_t *b #endif if (this->img_state[img->id] != 2) { printf ("libmpeg2:decode_data:free_frame id=%d BAD STATE:%d\n", img->id, this->img_state[img->id]); - abort(); + _x_abort(); } if (this->img_state[img->id] == 2) { img->free(img); @@ -308,7 +308,7 @@ static void mpeg2_video_reset (video_decoder_t *this_gen) { if (this->img_state[img->id] != 1) { printf ("libmpeg2:decode_data:draw_frame id=%d BAD STATE:%d\n", img->id, this->img_state[img->id]); - abort(); + _x_abort(); } if (this->img_state[img->id] == 1) { frame_skipping = img->draw (img, this->stream); @@ -319,13 +319,13 @@ static void mpeg2_video_reset (video_decoder_t *this_gen) { if (info->discard_fbuf && !info->discard_fbuf->id) { printf ("libmpeg2:decode_data:BAD free_frame discard_fbuf=%p\n", info->discard_fbuf); - abort(); + _x_abort(); } if (info->discard_fbuf && info->discard_fbuf->id) { img = (vo_frame_t *) info->discard_fbuf->id; if (this->img_state[img->id] != 2) { printf ("libmpeg2:decode_data:free_frame id=%d BAD STATE:%d\n", img->id, this->img_state[img->id]); - abort(); + _x_abort(); } if (this->img_state[img->id] == 2) { img->free(img); @@ -339,7 +339,7 @@ static void mpeg2_video_reset (video_decoder_t *this_gen) { if (this->img_state[img->id] != 1) { printf ("libmpeg2:decode_data:draw_frame id=%d BAD STATE:%d\n", img->id, this->img_state[img->id]); - abort(); + _x_abort(); } if (this->img_state[img->id] == 1) { frame_skipping = img->draw (img, this->stream); @@ -350,13 +350,13 @@ static void mpeg2_video_reset (video_decoder_t *this_gen) { if (info->discard_fbuf && !info->discard_fbuf->id) { printf ("libmpeg2:decode_data:BAD free_frame discard_fbuf=%p\n", info->discard_fbuf); - abort(); + _x_abort(); } if (info->discard_fbuf && info->discard_fbuf->id) { img = (vo_frame_t *) info->discard_fbuf->id; if (this->img_state[img->id] != 2) { printf ("libmpeg2:decode_data:free_frame id=%d BAD STATE:%d\n", img->id, this->img_state[img->id]); - abort(); + _x_abort(); } if (this->img_state[img->id] == 2) { img->free(img); @@ -370,7 +370,7 @@ static void mpeg2_video_reset (video_decoder_t *this_gen) { if (this->img_state[img->id] != 1) { printf ("libmpeg2:decode_data:draw_frame id=%d BAD STATE:%d\n", img->id, this->img_state[img->id]); - abort(); + _x_abort(); } if (this->img_state[img->id] == 1) { frame_skipping = img->draw (img, this->stream); @@ -381,13 +381,13 @@ static void mpeg2_video_reset (video_decoder_t *this_gen) { if (info->discard_fbuf && !info->discard_fbuf->id) { printf ("libmpeg2:decode_data:BAD free_frame discard_fbuf=%p\n", info->discard_fbuf); - abort(); + _x_abort(); } if (info->discard_fbuf && info->discard_fbuf->id) { img = (vo_frame_t *) info->discard_fbuf->id; if (this->img_state[img->id] != 2) { printf ("libmpeg2:decode_data:free_frame id=%d BAD STATE:%d\n", img->id, this->img_state[img->id]); - abort(); + _x_abort(); } if (this->img_state[img->id] == 2) { img->free(img); |