OSDN Git Service

Hint why SDL_Init() may have failed.
authorCarl Eugen Hoyos <cehoyos@ag.or.at>
Sun, 10 Jul 2011 19:11:37 +0000 (21:11 +0200)
committerCarl Eugen Hoyos <cehoyos@ag.or.at>
Sun, 10 Jul 2011 19:11:37 +0000 (21:11 +0200)
ffplay.c

index a8be6be..40e0cc1 100644 (file)
--- a/ffplay.c
+++ b/ffplay.c
@@ -3027,6 +3027,7 @@ int main(int argc, char **argv)
 #endif
     if (SDL_Init (flags)) {
         fprintf(stderr, "Could not initialize SDL - %s\n", SDL_GetError());
+        fprintf(stderr, "(Did you set the DISPLAY variable?)\n");
         exit(1);
     }