[MPlayer-cvslog] r24052 - in trunk/libvo: vo_aa.c vo_caca.c
cehoyos
subversion at mplayerhq.hu
Mon Aug 13 10:32:47 CEST 2007
Author: cehoyos
Date: Mon Aug 13 10:32:47 2007
New Revision: 24052
Log:
Fix likely mistake when using char*.
Modified:
trunk/libvo/vo_aa.c
trunk/libvo/vo_caca.c
Modified: trunk/libvo/vo_aa.c
==============================================================================
--- trunk/libvo/vo_aa.c (original)
+++ trunk/libvo/vo_aa.c Mon Aug 13 10:32:47 2007
@@ -393,12 +393,12 @@ flip_page(void) {
{
if (time(NULL)>=stoposd ) {
showosdmessage=0;
- if(osdmessagetext) {
+ if(*osdmessagetext) {
memset(c->textbuffer + osdy * aa_scrwidth(c) + osdx,' ',strlen(osdmessagetext));
memset(c->attrbuffer + osdy * aa_scrwidth(c) + osdx ,0,strlen(osdmessagetext));
osdmessagetext[0] = '\0';
}
- if(posbar) {
+ if(*posbar) {
memset(c->textbuffer + (osdy+1) * aa_scrwidth(c),' ',strlen(posbar));
memset(c->attrbuffer + (osdy+1) * aa_scrwidth(c),0,strlen(posbar));
}
Modified: trunk/libvo/vo_caca.c
==============================================================================
--- trunk/libvo/vo_caca.c (original)
+++ trunk/libvo/vo_caca.c Mon Aug 13 10:32:47 2007
@@ -177,12 +177,12 @@ static void flip_page(void)
if (time(NULL) >= stoposd)
{
showosdmessage = 0;
- if (posbar)
+ if (*posbar)
posbar[0] = '\0';
} else {
caca_putstr(osdx, osdy, osdmessagetext);
- if (posbar)
+ if (*posbar)
caca_putstr(0, posbary, posbar);
}
}
More information about the MPlayer-cvslog
mailing list