summaryrefslogtreecommitdiff
path: root/src/vdr
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2008-03-01 03:17:33 +0100
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2008-03-01 03:17:33 +0100
commit813c609ea30c3201eec34d4bba185566ad48c998 (patch)
treef93ff7fd2604bf9396d5f1712d3eaa2f6d044178 /src/vdr
parente728b8f587ee41ff483e46fe50a4cb538c5df9e2 (diff)
parenta1508e2f58d2c4b32d032d798f6f137262717e7f (diff)
downloadxine-lib-813c609ea30c3201eec34d4bba185566ad48c998.tar.gz
xine-lib-813c609ea30c3201eec34d4bba185566ad48c998.tar.bz2
Merge from 1.2 tip.
--HG-- rename : src/combined/ffmpeg/ff_dvaudio_decoder.c => src/audio_dec/ff_dvaudio_decoder.c
Diffstat (limited to 'src/vdr')
-rw-r--r--src/vdr/post_vdr_audio.c2
-rw-r--r--src/vdr/post_vdr_video.c8
2 files changed, 6 insertions, 4 deletions
diff --git a/src/vdr/post_vdr_audio.c b/src/vdr/post_vdr_audio.c
index ca45ecd35..49de8f9cf 100644
--- a/src/vdr/post_vdr_audio.c
+++ b/src/vdr/post_vdr_audio.c
@@ -71,7 +71,7 @@ static void vdr_audio_port_put_buffer(xine_audio_port_t *port_gen, aud
void *vdr_audio_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;
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