summaryrefslogtreecommitdiff
path: root/src/vdr/post_vdr_video.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vdr/post_vdr_video.c')
-rw-r--r--src/vdr/post_vdr_video.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/vdr/post_vdr_video.c b/src/vdr/post_vdr_video.c
index ff6c32504..178538655 100644
--- a/src/vdr/post_vdr_video.c
+++ b/src/vdr/post_vdr_video.c
@@ -23,9 +23,9 @@
*/
#define LOG_MODULE "vdr_video"
-#define LOG_VERBOSE
/*
#define LOG
+#define LOG_VERBOSE
*/
#include <xine/xine_internal.h>
@@ -94,7 +94,7 @@ static int vdr_video_draw(vo_frame_t *frame, xine_stream_t *stream);
void *vdr_video_init_plugin(xine_t *xine, void *data)
{
- post_class_t *class = (post_class_t *)malloc(sizeof (post_class_t));
+ post_class_t *class = (post_class_t *)xine_xmalloc(sizeof (post_class_t));
if (!class)
return NULL;
@@ -437,12 +437,14 @@ static int vdr_video_draw(vo_frame_t *frame, xine_stream_t *stream)
frame->next->pts = 0;
}
*/
+#if defined(LOG) && defined(LOG_VERBOSE)
{
int a = 0, b = 0, c = 0, d = 0;
if (stream)
_x_query_buffer_usage(stream, &a, &b, &c, &d);
- fprintf(stderr, "buffer usage: %3d, %2d, %2d, %2d, %p\n", a, b, c, d, stream);
+ lprintf("buffer usage: %3d, %2d, %2d, %2d, %p\n", a, b, c, d, stream);
}
+#endif
if (!this->enabled
|| frame->bad_frame