From eeaeb1109d83f8ca10bd06f321b80b9764d1f882 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20=27Flameeyes=27=20Petten=C3=B2?= Date: Tue, 26 Sep 2006 08:00:02 +0000 Subject: Use _x_assert. CVS patchset: 8292 CVS date: 2006/09/26 08:00:02 --- src/xine-engine/vo_scale.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/xine-engine/vo_scale.c b/src/xine-engine/vo_scale.c index 73ab7fcdd..b2f3001d0 100644 --- a/src/xine-engine/vo_scale.c +++ b/src/xine-engine/vo_scale.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: vo_scale.c,v 1.38 2006/09/25 22:27:48 dgp85 Exp $ + * $Id: vo_scale.c,v 1.39 2006/09/26 08:00:02 dgp85 Exp $ * * Contains common code to calculate video scaling parameters. * In short, it will map frame dimensions to screen/window size. @@ -247,12 +247,9 @@ int _x_vo_scale_redraw_needed (vo_scale_t *this) { double gui_pixel_aspect; int ret = 0; - assert(this->frame_output_cb); - if ( ! this->frame_output_cb ) { - /* TODO: Make this use xine_log, if xine instance is available. */ - fprintf(stderr, _("vo_scale: error! frame_output_cb must be set!\n")); + _x_assert(this->frame_output_cb); + if ( ! this->frame_output_cb ) return 0; - } this->frame_output_cb (this->user_data, this->delivered_width - (this->crop_left + this->crop_right), -- cgit v1.2.3