[FFmpeg-devel] [PATCH] ffplay: log SDL error message
Ganesh Ajjanagadde
gajjanagadde at gmail.com
Sun Oct 4 18:29:22 CEST 2015
This patch logs the SDL error message on failure of SDL_CreateThread.
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde at 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
More information about the ffmpeg-devel
mailing list