comparison src/main.c @ 3:acfb339ab87d

Cleanups.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 05 Aug 2013 13:50:46 +0300
parents 785057719d9b
children de2ee75a142f
comparison
equal deleted inserted replaced
2:105513a2e3c9 3:acfb339ab87d
3545 3545
3546 // load & init video 3546 // load & init video
3547 3547
3548 printf("--- nu laddar vi en videofilmen, det aer jaetteroligt att fuska poe Assembly\n"); 3548 printf("--- nu laddar vi en videofilmen, det aer jaetteroligt att fuska poe Assembly\n");
3549 3549
3550 OggPlayer ogg("data/video/video.ogg",AF_S16,2,44100,VF_BGRA); 3550 static const char *videofile = "data/video/video.ogg";
3551 OggPlayer ogg(videofile,AF_S16,2,44100,VF_BGRA);
3551 if(ogg.fail()) { 3552 if(ogg.fail()) {
3552 printf("could not open video file \"%s\"\n", "data/video/video.ogg\n"); 3553 printf("could not open video file \"%s\"\n", videofile);
3553 return -2; 3554 return -2;
3554 } 3555 }
3555 YUVFrame yuv_frame(ogg); 3556 YUVFrame yuv_frame(ogg);
3556 myVideoFrame = &yuv_frame; 3557 myVideoFrame = &yuv_frame;
3557 3558