From 2d3d304c079f81db1d252a001dac5ffb51ecaecc Mon Sep 17 00:00:00 2001 From: cedric Date: Fri, 2 Mar 2012 16:38:49 +0000 Subject: [PATCH] emotion: fix build with recent xine. Patch by Anthony Ramine dev-extend.eu>. git-svn-id: http://svn.enlightenment.org/svn/e/trunk/emotion@68629 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/modules/xine/emotion_xine_vo_out.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/modules/xine/emotion_xine_vo_out.c b/src/modules/xine/emotion_xine_vo_out.c index e0502f6..3ae8e1c 100644 --- a/src/modules/xine/emotion_xine_vo_out.c +++ b/src/modules/xine/emotion_xine_vo_out.c @@ -130,8 +130,13 @@ _emotion_class_init(xine_t *xine, void *visual __UNUSED__) cl = (Emotion_Class *) malloc(sizeof(Emotion_Class)); if (!cl) return NULL; cl->driver_class.open_plugin = _emotion_open; +#if XINE_MAJOR_VERSION < 1 || (XINE_MAJOR_VERSION == 1 && XINE_MINOR_VERSION < 2) cl->driver_class.get_identifier = _emotion_class_identifier_get; cl->driver_class.get_description = _emotion_class_description_get; +#else + cl->driver_class.identifier = _emotion_class_identifier_get(NULL); + cl->driver_class.description = _emotion_class_description_get(NULL); +#endif cl->driver_class.dispose = _emotion_class_dispose; cl->config = xine->config; cl->xine = xine; -- 2.7.4