[Ffmpeg-cvslog] CVS: ffmpeg/libavformat framehook.c, 1.5, 1.6 sierravmd.c, 1.7, 1.8 udp.c, 1.17, 1.18
Michael Niedermayer CVS
michael
Wed Jul 13 12:18:38 CEST 2005
Update of /cvsroot/ffmpeg/ffmpeg/libavformat
In directory mail:/var2/tmp/cvs-serv22667/libavformat
Modified Files:
framehook.c sierravmd.c udp.c
Log Message:
printf-> av_log patch by (Benjamin Larsson, banan: student ltu se)
Index: framehook.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavformat/framehook.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- framehook.c 22 Feb 2004 00:31:19 -0000 1.5
+++ framehook.c 13 Jul 2005 10:18:35 -0000 1.6
@@ -49,7 +49,7 @@
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 @@
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 @@
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
}
Index: sierravmd.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavformat/sierravmd.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- sierravmd.c 26 May 2005 20:17:12 -0000 1.7
+++ sierravmd.c 13 Jul 2005 10:18:35 -0000 1.8
@@ -290,7 +290,7 @@
pkt->data, pkt->size, vmd->audio_block_align);
}
-printf (" dispatching %s frame with %d bytes and pts %lld (%0.1f sec)\n",
+av_log(NULL, AV_LOG_INFO, " dispatching %s frame with %d bytes and pts %lld (%0.1f sec)\n",
(frame->frame_record[0] == 0x02) ? "video" : "audio",
frame->frame_size + BYTES_PER_FRAME_RECORD,
pkt->pts, (float)(pkt->pts / 90000.0));
Index: udp.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavformat/udp.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- udp.c 24 Feb 2005 19:08:50 -0000 1.17
+++ udp.c 13 Jul 2005 10:18:35 -0000 1.18
@@ -133,7 +133,7 @@
hints.ai_family = family;
hints.ai_flags = flags;
if ((error = getaddrinfo(node, service, &hints, &res))) {
- fprintf(stderr, "udp_ipv6_resolve_host: %s\n", gai_strerror(error));
+ av_log(NULL, AV_LOG_ERROR, "udp_ipv6_resolve_host: %s\n", gai_strerror(error));
}
}
return res;
More information about the ffmpeg-cvslog
mailing list