This patch logs the SDL error message on failure of SDL_CreateThread. Signed-off-by: Ganesh Ajjanagadde <gajjanaga...@gmail.com> --- ffplay.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/ffplay.c b/ffplay.c index 03befdc..ad8ffd5 100644 --- a/ffplay.c +++ b/ffplay.c @@ -3182,6 +3182,7 @@ static VideoState *stream_open(const char *filename, AVInputFormat *iformat) is->av_sync_type = av_sync_type; is->read_tid = SDL_CreateThread(read_thread, is); if (!is->read_tid) { + av_log(is, AV_LOG_FATAL, "SDL_CreateThread(): %s\n", SDL_GetError()); fail: stream_close(is); return NULL; -- 2.6.0 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel