From 7f48ad2bdbbd436228b41bfa8da07668c5a81916 Mon Sep 17 00:00:00 2001 From: folke Date: Fri, 17 Aug 2001 20:34:58 +0000 Subject: [PATCH] aalib 1.4.X incombatibility fixed git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1578 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_aa.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/libvo/vo_aa.c b/libvo/vo_aa.c index a74522e9b5..4ac1f2d113 100644 --- a/libvo/vo_aa.c +++ b/libvo/vo_aa.c @@ -218,6 +218,7 @@ init(uint32_t width, uint32_t height, uint32_t d_width, struct stat sbuf; char * hidis = NULL; int i; + extern aa_linkedlist *aa_displayrecommended; switch(format) { case IMGFMT_BGR24: @@ -240,10 +241,7 @@ init(uint32_t width, uint32_t height, uint32_t d_width, /* initializing of aalib */ - /* why removes get after getting it the gotten value out of the list? :( */ - //hidis=aa_getfirst(&aa_displayrecommended); - if (aa_displayrecommended!=NULL) - hidis=aa_displayrecommended->text; + hidis=aa_getfirst(&aa_displayrecommended); if ( hidis==NULL ){ /* check /dev/vcsa */ /* check only, if no driver is explicit set */ @@ -261,7 +259,7 @@ init(uint32_t width, uint32_t height, uint32_t d_width, aa_recommendhidisplay("curses"); aa_recommendhidisplay("X11"); }else fclose(fp); - } + } else aa_recommendhidisplay(hidis); c = aa_autoinit(&aa_defparams); aa_resizehandler(c, (void *)resize);