summaryrefslogtreecommitdiff
path: root/legacy/emotion/src/modules/xine/emotion_xine_vo_out.c
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2011-12-30 13:24:30 +0000
committerCarsten Haitzler <raster@rasterman.com>2011-12-30 13:24:30 +0000
commitaee164d97c46c81ebba403d64f6a3c1f6a58b7be (patch)
tree3d224e25717184dfd596691c8f3bb1c3de339462 /legacy/emotion/src/modules/xine/emotion_xine_vo_out.c
parentdafc9d3aec9d379f25069fdd3d1449db7133e380 (diff)
warning--
SVN revision: 66691
Diffstat (limited to '')
-rw-r--r--legacy/emotion/src/modules/xine/emotion_xine_vo_out.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/legacy/emotion/src/modules/xine/emotion_xine_vo_out.c b/legacy/emotion/src/modules/xine/emotion_xine_vo_out.c
index 883ab23ec4..e0502f6311 100644
--- a/legacy/emotion/src/modules/xine/emotion_xine_vo_out.c
+++ b/legacy/emotion/src/modules/xine/emotion_xine_vo_out.c
@@ -69,6 +69,8 @@ struct _Emotion_Lut
69 uint8_t foo : 8; 69 uint8_t foo : 8;
70} __attribute__ ((packed)); 70} __attribute__ ((packed));
71 71
72typedef void (*done_func_type)(void *data);
73
72/***************************************************************************/ 74/***************************************************************************/
73static void *_emotion_class_init (xine_t *xine, void *visual); 75static void *_emotion_class_init (xine_t *xine, void *visual);
74static void _emotion_class_dispose (video_driver_class_t *driver_class); 76static void _emotion_class_dispose (video_driver_class_t *driver_class);
@@ -442,10 +444,10 @@ _emotion_frame_display(vo_driver_t *vo_driver, vo_frame_t *vo_frame)
442 444
443 buf = &(fr->frame); 445 buf = &(fr->frame);
444 fr->frame.timestamp = (double)fr->vo_frame.vpts / 90000.0; 446 fr->frame.timestamp = (double)fr->vo_frame.vpts / 90000.0;
445 fr->frame.done_func = _emotion_frame_data_unlock; 447 fr->frame.done_func = (done_func_type)_emotion_frame_data_unlock;
446 fr->frame.done_data = fr; 448 fr->frame.done_data = fr;
447// DBG("FRAME FOR %p", dv->ev); 449// DBG("FRAME FOR %p", dv->ev);
448 write(dv->ev->fd_write, &buf, sizeof(void *)); 450 if (write(dv->ev->fd_write, &buf, sizeof(void *)) < 0) perror("write");
449// DBG("-- FRAME DEC %p == %i", fr->frame.obj, ret); 451// DBG("-- FRAME DEC %p == %i", fr->frame.obj, ret);
450 fr->in_use = 1; 452 fr->in_use = 1;
451 dv->ev->fq++; 453 dv->ev->fq++;