summaryrefslogtreecommitdiff
path: root/legacy/emotion/src/lib
diff options
context:
space:
mode:
authorRafael Antognolli <antognolli@gmail.com>2011-09-01 19:04:15 +0000
committerRafael Antognolli <antognolli@gmail.com>2011-09-01 19:04:15 +0000
commita7ae4566b8f911676009a04c4411e3aff87b2abc (patch)
tree261efdbc88edb53e245597502549bb5a96b36df6 /legacy/emotion/src/lib
parent1cacec0d415ce520ae49197e31efd16ffd37a4c4 (diff)
Add generic player backend (with vlc player).
This generic player backend executes a separate player in another process. It receives the bytes to be drawn on the emotion object through a shared memory, and communicates with the player through a pipe, using the player standard input/output. The player must communicate with emotion using the defined commands specified in the Emotion_Generic_Plugin.h. It doesn't need to link against emotion, just include this file for easier implementation. This implementation was sponsored by Zodiac Aerospace. SVN revision: 63062
Diffstat (limited to 'legacy/emotion/src/lib')
-rw-r--r--legacy/emotion/src/lib/emotion_private.h1
-rw-r--r--legacy/emotion/src/lib/emotion_smart.c6
2 files changed, 6 insertions, 1 deletions
diff --git a/legacy/emotion/src/lib/emotion_private.h b/legacy/emotion/src/lib/emotion_private.h
index 65ea4c7ed4..0961fed962 100644
--- a/legacy/emotion/src/lib/emotion_private.h
+++ b/legacy/emotion/src/lib/emotion_private.h
@@ -41,6 +41,7 @@ enum _Emotion_Format
41 41
42struct _Emotion_Module_Options 42struct _Emotion_Module_Options
43{ 43{
44 const char *player;
44 Eina_Bool no_video : 1; 45 Eina_Bool no_video : 1;
45 Eina_Bool no_audio : 1; 46 Eina_Bool no_audio : 1;
46}; 47};
diff --git a/legacy/emotion/src/lib/emotion_smart.c b/legacy/emotion/src/lib/emotion_smart.c
index 87f58d1775..33ed128aea 100644
--- a/legacy/emotion/src/lib/emotion_smart.c
+++ b/legacy/emotion/src/lib/emotion_smart.c
@@ -124,7 +124,8 @@ static int _log_domain = -1;
124static const char *_backend_priority[] = { 124static const char *_backend_priority[] = {
125 "gstreamer", 125 "gstreamer",
126 "xine", 126 "xine",
127 "vlc" 127 "vlc",
128 "generic"
128}; 129};
129 130
130static const char SIG_FRAME_DECODE[] = "frame_decode"; 131static const char SIG_FRAME_DECODE[] = "frame_decode";
@@ -312,6 +313,9 @@ emotion_object_module_option_set(Evas_Object *obj, const char *opt, const char *
312 313
313 E_SMART_OBJ_GET(sd, obj, E_OBJ_NAME); 314 E_SMART_OBJ_GET(sd, obj, E_OBJ_NAME);
314 if ((!opt) || (!val)) return; 315 if ((!opt) || (!val)) return;
316
317 if (!strcmp(opt, "player"))
318 eina_stringshare_replace(&sd->module_options.player, val);
315} 319}
316 320
317EAPI Eina_Bool 321EAPI Eina_Bool