Browse Source

* Added error checks to cacaplay

tags/v0.99.beta14
Jean-Yves Lamoureux jylam 18 years ago
parent
commit
d9adb5fa6d
1 changed files with 11 additions and 1 deletions
  1. +11
    -1
      src/cacaplay.c

+ 11
- 1
src/cacaplay.c View File

@@ -52,8 +52,18 @@ int main(int argc, char **argv)

cv = cucul_create_canvas(0, 0);
app = cucul_create_canvas(0, 0);

if(cv == NULL || app == NULL)
{
printf("Can't created canvas\n");
return -1;
}
dp = caca_create_display(cv);
if(dp == NULL)
{
printf("Can't create display\n");
return -1;
}


for(;;)
{


Loading…
Cancel
Save