diff options
author | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2006-09-26 08:00:02 +0000 |
---|---|---|
committer | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2006-09-26 08:00:02 +0000 |
commit | eeaeb1109d83f8ca10bd06f321b80b9764d1f882 (patch) | |
tree | 19a3e9d63f38ad8d006a224c6637c7bcb2810d9c /src | |
parent | 3997b3928e1662126c26185248d3cc2d240ffaeb (diff) | |
download | xine-lib-eeaeb1109d83f8ca10bd06f321b80b9764d1f882.tar.gz xine-lib-eeaeb1109d83f8ca10bd06f321b80b9764d1f882.tar.bz2 |
Use _x_assert.
CVS patchset: 8292
CVS date: 2006/09/26 08:00:02
Diffstat (limited to 'src')
-rw-r--r-- | src/xine-engine/vo_scale.c | 9 |
1 files changed, 3 insertions, 6 deletions
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), |