From 36eeec59f89612f647e2921909c16ff22927d197 Mon Sep 17 00:00:00 2001 From: cedric Date: Sun, 23 Oct 2011 09:21:14 +0000 Subject: [PATCH] emotion: correctly guard Ecore_X usage. git-svn-id: http://svn.enlightenment.org/svn/e/trunk/emotion@64322 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/modules/gstreamer/emotion_sink.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/modules/gstreamer/emotion_sink.c b/src/modules/gstreamer/emotion_sink.c index c9af841..b03af81 100644 --- a/src/modules/gstreamer/emotion_sink.c +++ b/src/modules/gstreamer/emotion_sink.c @@ -1039,7 +1039,9 @@ _video_resize(void *data, Evas_Object *obj __UNUSED__, const Evas_Video_Surface { Emotion_Gstreamer_Video *ev = data; +#ifdef HAVE_ECORE_X ecore_x_window_resize(ev->win, w, h); +#endif fprintf(stderr, "resize: %i, %i\n", w, h); } @@ -1048,11 +1050,13 @@ _video_move(void *data, Evas_Object *obj __UNUSED__, const Evas_Video_Surface *s Evas_Coord x, Evas_Coord y) { Emotion_Gstreamer_Video *ev = data; +#ifdef HAVE_ECORE_X unsigned int pos[2]; fprintf(stderr, "move: %i, %i\n", x, y); pos[0] = x; pos[1] = y; ecore_x_window_prop_card32_set(ev->win, ECORE_X_ATOM_E_VIDEO_POSITION, pos, 2); +#endif } #if 0 @@ -1095,7 +1099,9 @@ _video_show(void *data, Evas_Object *obj __UNUSED__, const Evas_Video_Surface *s Emotion_Gstreamer_Video *ev = data; fprintf(stderr, "show xv\n"); +#ifdef HAVE_ECORE_X ecore_x_window_show(ev->win); +#endif /* gst_pad_set_blocked_async(ev->teepad, TRUE, _block_pad_link_cb, ev); */ } @@ -1105,7 +1111,9 @@ _video_hide(void *data, Evas_Object *obj __UNUSED__, const Evas_Video_Surface *s Emotion_Gstreamer_Video *ev = data; fprintf(stderr, "hide xv\n"); +#ifdef HAVE_ECORE_X ecore_x_window_hide(ev->win); +#endif /* gst_pad_set_blocked_async(ev->teepad, TRUE, _block_pad_unlink_cb, ev); */ } -- 2.7.4