summaryrefslogtreecommitdiff
path: root/legacy/emotion/src/modules/emotion_xine.h
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2004-07-18 08:04:41 +0000
committerCarsten Haitzler <raster@rasterman.com>2004-07-18 08:04:41 +0000
commitad7ff874ab8704f24b04148a3bbe65d0fd5ff910 (patch)
treecf4e33fe95652095a07eb945d24eef515221b7bf /legacy/emotion/src/modules/emotion_xine.h
parent6b9f49e51f96fcd6d704d4b3fe8b6fa8b57b94bc (diff)
moved dome things off into threads of their own to minimise main ap impact
SVN revision: 10897
Diffstat (limited to '')
-rw-r--r--legacy/emotion/src/modules/emotion_xine.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/legacy/emotion/src/modules/emotion_xine.h b/legacy/emotion/src/modules/emotion_xine.h
index 53e242ad90..8b9f2a7080 100644
--- a/legacy/emotion/src/modules/emotion_xine.h
+++ b/legacy/emotion/src/modules/emotion_xine.h
@@ -2,6 +2,9 @@
2#define EMOTION_XINE_H 2#define EMOTION_XINE_H
3 3
4#include <xine.h> 4#include <xine.h>
5#include <unistd.h>
6#include <fcntl.h>
7#include <pthread.h>
5 8
6typedef struct _Emotion_Xine_Video Emotion_Xine_Video; 9typedef struct _Emotion_Xine_Video Emotion_Xine_Video;
7typedef struct _Emotion_Xine_Video_Frame Emotion_Xine_Video_Frame; 10typedef struct _Emotion_Xine_Video_Frame Emotion_Xine_Video_Frame;
@@ -21,8 +24,9 @@ struct _Emotion_Xine_Video
21 int w, h; 24 int w, h;
22 Evas_Object *obj; 25 Evas_Object *obj;
23 Emotion_Xine_Video_Frame *cur_frame; 26 Emotion_Xine_Video_Frame *cur_frame;
24 int seek_to; 27 volatile int seek_to;
25 double seek_to_pos; 28 volatile int get_poslen;
29 volatile double seek_to_pos;
26 Ecore_Timer *timer; 30 Ecore_Timer *timer;
27 int fd_read; 31 int fd_read;
28 int fd_write; 32 int fd_write;
@@ -35,6 +39,14 @@ struct _Emotion_Xine_Video
35 unsigned char video_mute : 1; 39 unsigned char video_mute : 1;
36 unsigned char audio_mute : 1; 40 unsigned char audio_mute : 1;
37 unsigned char spu_mute : 1; 41 unsigned char spu_mute : 1;
42 volatile unsigned char delete_me : 1;
43
44 pthread_t seek_th;
45 pthread_t get_pos_len_th;
46 pthread_cond_t seek_cond;
47 pthread_cond_t get_pos_len_cond;
48 pthread_mutex_t seek_mutex;
49 pthread_mutex_t get_pos_len_mutex;
38}; 50};
39 51
40struct _Emotion_Xine_Video_Frame 52struct _Emotion_Xine_Video_Frame