summaryrefslogtreecommitdiffstats
path: root/libvo/vo_aa.c
diff options
context:
space:
mode:
authorfolke <folke@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-08-17 20:34:58 +0000
committerfolke <folke@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-08-17 20:34:58 +0000
commit7f48ad2bdbbd436228b41bfa8da07668c5a81916 (patch)
tree2f0d181168d04106e55a7f3660fb642d438d9f25 /libvo/vo_aa.c
parent7fbab242624ec313eb00a4dc3f53b4ada3e5f512 (diff)
downloadmpv-7f48ad2bdbbd436228b41bfa8da07668c5a81916.tar.bz2
mpv-7f48ad2bdbbd436228b41bfa8da07668c5a81916.tar.xz
aalib 1.4.X incombatibility fixed
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1578 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/vo_aa.c')
-rw-r--r--libvo/vo_aa.c8
1 files 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<vt> */
/* 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);