On Mon, 27 Sep 2010, Enlightenment SVN wrote:
> Log: > [Enjoy] Try all possible emotion backends before giving up. > > Try, in order: xine, gstreamer, vlc. I know xine and gstreamer backends are > working, but I don't know the state of the vlc frontend. I'm assuming it > works. should'nt that kind of function be a part of the emotion API ? I think that all the lib/app using emotion will try to implement that. Vincent > Author: acidx > Date: 2010-09-27 10:57:32 -0700 (Mon, 27 Sep 2010) > New Revision: 52803 > > Modified: > trunk/enjoy/src/bin/win.c > > Modified: trunk/enjoy/src/bin/win.c > =================================================================== > --- trunk/enjoy/src/bin/win.c 2010-09-27 17:26:26 UTC (rev 52802) > +++ trunk/enjoy/src/bin/win.c 2010-09-27 17:57:32 UTC (rev 52803) > @@ -1,10 +1,7 @@ > #include "private.h" > #include <Emotion.h> > > -#ifndef ENGINE > -/* todo: move to preferences */ > -#define ENGINE "xine" > -#endif > +static const char *_emotion_engines[] = { "xine", "gstreamer", "vlc", NULL }; > > #define MSG_VOLUME 1 > #define MSG_POSITION 2 > @@ -395,6 +392,7 @@ > { > Win *w = &_win; > const char *s; > + const char **e; > Evas_Coord iw = 320, ih = 240; > char path[PATH_MAX]; > > @@ -414,9 +412,10 @@ > w->db_path = eina_stringshare_add(path); > > w->emotion = emotion_object_add(evas_object_evas_get(w->win)); > - if (!emotion_object_init(w->emotion, ENGINE)) > + for (e = _emotion_engines; *e; e++) if (emotion_object_init(w->emotion, > *e)) break; > + if (!*e) > { > - CRITICAL("cannot create emotion engine %s", ENGINE); > + CRITICAL("cannot create emotion engine"); > goto error; > } > emotion_object_video_mute_set(w->emotion, EINA_TRUE); > > > ------------------------------------------------------------------------------ > Start uncovering the many advantages of virtual appliances > and start using them to simplify application deployment and > accelerate your shift to cloud computing. > http://p.sf.net/sfu/novell-sfdev2dev > _______________________________________________ > enlightenment-svn mailing list > enlightenment-...@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/enlightenment-svn > > ------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel