[FFmpeg-devel] [PATCH]Give ffplay users a hint why SDL_init may have failed

Carl Eugen Hoyos cehoyos at ag.or.at
Wed Jul 6 23:31:22 CEST 2011


Hi!

I will push attached if nobody objects.

Thank you, Carl Eugen
-------------- next part --------------
diff --git a/ffplay.c b/ffplay.c
index a8be6be..40e0cc1 100644
--- 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);
     }
 


More information about the ffmpeg-devel mailing list