1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-18 13:47:04 +00:00

Fix likely mistake when using char*.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24052 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
cehoyos 2007-08-13 08:32:47 +00:00
parent 39fc76f396
commit 104ce10b99
2 changed files with 4 additions and 4 deletions

View File

@ -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));
}

View File

@ -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);
}
}