summaryrefslogtreecommitdiff
path: root/vhook/imlib2.c
diff options
context:
space:
mode:
authorJonY <10walls@gmail.com>2008-09-04 20:45:13 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2008-09-04 20:45:13 +0000
commitf2eb8c5bf63f5efdcb5d57b2b0e85530ffc52843 (patch)
tree4540af722ec13ff0c48fa4deaa0b086a3ff4c245 /vhook/imlib2.c
parent991945d0e4a0a8191342de4c168e594281f5ac12 (diff)
Properly use av_log rather than fprintf/printf.
Fix the "implicit declaration of function 'please_use_av_log'" warnings. Patch by JonY <10walls _AT_ gmail #dot# com> Originally committed as revision 15200 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'vhook/imlib2.c')
-rw-r--r--vhook/imlib2.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/vhook/imlib2.c b/vhook/imlib2.c
index b013cfb286..49a5bb2a10 100644
--- a/vhook/imlib2.c
+++ b/vhook/imlib2.c
@@ -215,21 +215,21 @@ int Configure(void **ctxp, int argc, char *argv[])
ci->fileImage = av_strdup(optarg);
break;
case '?':
- fprintf(stderr, "Unrecognized argument '%s'\n", argv[optind]);
+ av_log(NULL, AV_LOG_ERROR, "Unrecognized argument '%s'\n", argv[optind]);
return -1;
}
}
if (ci->eval_colors && !(ci->expr_R && ci->expr_G && ci->expr_B))
{
- fprintf(stderr, "You must specify expressions for all or no colors.\n");
+ av_log(NULL, AV_LOG_ERROR, "You must specify expressions for all or no colors.\n");
return -1;
}
if (ci->text || ci->file) {
ci->fn = imlib_load_font(font);
if (!ci->fn) {
- fprintf(stderr, "Failed to load font '%s'\n", font);
+ av_log(NULL, AV_LOG_ERROR, "Failed to load font '%s'\n", font);
return -1;
}
imlib_context_set_font(ci->fn);
@@ -242,7 +242,7 @@ int Configure(void **ctxp, int argc, char *argv[])
if (ci->eval_colors)
{
- fprintf(stderr, "You must not specify both a color name and expressions for the colors.\n");
+ av_log(NULL, AV_LOG_ERROR, "You must not specify both a color name and expressions for the colors.\n");
return -1;
}
@@ -255,7 +255,7 @@ int Configure(void **ctxp, int argc, char *argv[])
f = fopen("/usr/lib/X11/rgb.txt", "r");
}
if (!f) {
- fprintf(stderr, "Failed to find RGB color names file\n");
+ av_log(NULL, AV_LOG_ERROR, "Failed to find RGB color names file\n");
return -1;
}
while (fgets(buff, sizeof(buff), f)) {
@@ -274,7 +274,7 @@ int Configure(void **ctxp, int argc, char *argv[])
}
fclose(f);
if (!done) {
- fprintf(stderr, "Unable to find color '%s' in rgb.txt\n", color);
+ av_log(NULL, AV_LOG_ERROR, "Unable to find color '%s' in rgb.txt\n", color);
return -1;
}
} else if (ci->eval_colors) {