Trivial error reporting patch by (Glenn Maynard <g_sf at zewt dot org>)
[ffmpeg.git] / ffplay.c
index 5bf7e52..13a96e4 100644 (file)
--- a/ffplay.c
+++ b/ffplay.c
@@ -1715,7 +1715,7 @@ int main(int argc, char **argv)
     flags |= SDL_INIT_EVENTTHREAD; /* Not supported on win32 */
 #endif
     if (SDL_Init (flags)) {
-        fprintf(stderr, "Could not initialize SDL - exiting\n");
+        fprintf(stderr, "Could not initialize SDL - %s\n", SDL_GetError());
         exit(1);
     }