Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37605376
en ru br
ALT Linux repos
S:1.5-alt1.38416.2
D:1.0-alt35.27330.1
5.0: 1.0-alt35.27654.3
4.1: 1.0-alt35.26470.1
4.0: 1.0-alt35.23722.M40.1

Group :: Video
RPM: mplayer

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: 0003-fix-aalib-dev-vcsa-detection.patch
Download


From 633c39db10f200c98e697d984d51c25822008369 Mon Sep 17 00:00:00 2001
From: Afanasov Dmitry <ender@altlinux.org>
Date: Fri, 5 Nov 2010 21:48:56 +0300
Subject: [PATCH] fix aalib /dev/vcsa detection
I do not know, why aa_getfirst(&aa_displayrecommended) on x11 retuns x11
driver, but on plain console it returns NULL. what is more, mplayer
upstream knows it and opens /dev/vcsa%2.2 directly. simpl changing
format to plain %i fixes this bug.
---
 MPlayer/libvo/vo_aa.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/MPlayer/libvo/vo_aa.c b/MPlayer/libvo/vo_aa.c
index dc805be5b3..54c512c05f 100644
--- a/MPlayer/libvo/vo_aa.c
+++ b/MPlayer/libvo/vo_aa.c
@@ -694,7 +694,7 @@ static int preinit(const char *arg)
 	if (fstat (2, &sbuf) != -1) {
 	// vt number stored in device minor
 	vt = sbuf.st_rdev & 0xff;
-	sprintf (fname, "/dev/vcsa%2.2i", vt);
+	sprintf (fname, "/dev/vcsa%i", vt);
 	fp = fopen (fname, "w+");
 	}
 	if (fp==NULL){
-- 
2.29.2
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin