diff options
author | Benjamin Larsson <banan@ludd.ltu.se> | 2005-07-13 10:18:35 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2005-07-13 10:18:35 +0000 |
commit | 58379c062f098482a54bf8a178150e0bf6d5e4ee (patch) | |
tree | 8790ea70e865c030a7732c98fdc1c66b7aab3bd1 /libavformat/framehook.c | |
parent | dc77ef7fea979d086176b2cc7e8798b57c1ce9bc (diff) | |
download | ffmpeg-streaming-58379c062f098482a54bf8a178150e0bf6d5e4ee.zip ffmpeg-streaming-58379c062f098482a54bf8a178150e0bf6d5e4ee.tar.gz |
printf-> av_log patch by (Benjamin Larsson, banan: student ltu se)
Originally committed as revision 4437 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/framehook.c')
-rw-r--r-- | libavformat/framehook.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libavformat/framehook.c b/libavformat/framehook.c index ee390e4..18be8a7 100644 --- a/libavformat/framehook.c +++ b/libavformat/framehook.c @@ -49,7 +49,7 @@ int frame_hook_add(int argc, char *argv[]) loaded = dlopen(argv[0], RTLD_NOW); if (!loaded) { - fprintf(stderr, "%s\n", dlerror()); + av_log(NULL, AV_LOG_ERROR, "%s\n", dlerror()); return -1; } @@ -63,18 +63,18 @@ int frame_hook_add(int argc, char *argv[]) fhe->Release = dlsym(loaded, "Release"); /* Optional */ if (!fhe->Process) { - fprintf(stderr, "Failed to find Process entrypoint in %s\n", argv[0]); + av_log(NULL, AV_LOG_ERROR, "Failed to find Process entrypoint in %s\n", argv[0]); return -1; } if (!fhe->Configure && argc > 1) { - fprintf(stderr, "Failed to find Configure entrypoint in %s\n", argv[0]); + av_log(NULL, AV_LOG_ERROR, "Failed to find Configure entrypoint in %s\n", argv[0]); return -1; } if (argc > 1 || fhe->Configure) { if (fhe->Configure(&fhe->ctx, argc, argv)) { - fprintf(stderr, "Failed to Configure %s\n", argv[0]); + av_log(NULL, AV_LOG_ERROR, "Failed to Configure %s\n", argv[0]); return -1; } } @@ -86,7 +86,7 @@ int frame_hook_add(int argc, char *argv[]) return 0; #else - fprintf(stderr, "Video hooking not compiled into this version\n"); + av_log(NULL, AV_LOG_ERROR, "Video hooking not compiled into this version\n"); return 1; #endif } |