Trivial error reporting patch by (Glenn Maynard <g_sf at zewt dot org>)
authorGlenn Maynard <g_sf@zewt.org>
Mon, 29 Sep 2003 00:14:13 +0000 (00:14 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 29 Sep 2003 00:14:13 +0000 (00:14 +0000)
Originally committed as revision 2316 to svn://svn.ffmpeg.org/ffmpeg/trunk

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);
     }