summaryrefslogtreecommitdiff
path: root/src/modules/emotion/gstreamer/emotion_fakeeos.c
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@gmail.com>2013-01-10 03:43:32 +0000
committerGustavo Sverzut Barbieri <barbieri@gmail.com>2013-01-10 03:43:32 +0000
commitdfb84c1657bfb14a5236b881193b81f4c0b8a69b (patch)
treeb51b210fc88a21eec8e5907b8bbfe12ebc669f90 /src/modules/emotion/gstreamer/emotion_fakeeos.c
parent532284dbbe4259a9f2291f44d3eff376849e8031 (diff)
efl: merge emotion.
this one was quite a huge work, but hopefully it's correct. NOTES: * removed vlc generic module, it should go into a separate package. * gstreamer is enabled by default (see --disable-gstreamer) * xine is disabled by default (see --enable-gstreamer) * generic is always built statically if supported * gstreamer and xine can't be configured as static (just lacks command line options, build system supports it) * v4l2 is enabled by default on linux if eeze is built (see --disable-v4l2) * emotion_test moved to src/tests/emotion and depends on EFL_ENABLE_TESTS (--with-tests), but is still installed if enabled. TODO (need your help!): * fix warnings with gstreamer and xine engine * call engine shutdown functions if building as static * remove direct usage of PACKAGE_*_DIR and use eina_prefix * add eina_prefix checkme file as evas and others * add support for $EFL_RUN_IN_TREE * create separate package for emotion_generic_modules * check docs hierarchy (doxygen is segv'in here) SVN revision: 82501
Diffstat (limited to 'src/modules/emotion/gstreamer/emotion_fakeeos.c')
-rw-r--r--src/modules/emotion/gstreamer/emotion_fakeeos.c70
1 files changed, 70 insertions, 0 deletions
diff --git a/src/modules/emotion/gstreamer/emotion_fakeeos.c b/src/modules/emotion/gstreamer/emotion_fakeeos.c
new file mode 100644
index 0000000000..6296ce3acf
--- /dev/null
+++ b/src/modules/emotion/gstreamer/emotion_fakeeos.c
@@ -0,0 +1,70 @@
1#ifdef HAVE_CONFIG_H
2# include "config.h"
3#endif
4
5#include <Eina.h>
6#include <Evas.h>
7
8#include <glib.h>
9#include <gst/gst.h>
10#include <gst/video/video.h>
11#include <gst/video/gstvideosink.h>
12
13#ifdef HAVE_ECORE_X
14# include <Ecore_X.h>
15# ifdef HAVE_XOVERLAY_H
16# include <gst/interfaces/xoverlay.h>
17# endif
18#endif
19
20#include "Emotion.h"
21#include "emotion_gstreamer.h"
22
23typedef struct _FakeEOSBin
24{
25 GstBin parent;
26} FakeEOSBin;
27
28typedef struct _FakeEOSBinClass
29{
30 GstBinClass parent;
31} FakeEOSBinClass;
32
33GST_BOILERPLATE(FakeEOSBin, fakeeos_bin, GstBin,
34 GST_TYPE_BIN);
35
36static void
37fakeeos_bin_handle_message(GstBin * bin, GstMessage * message)
38{
39 /* FakeEOSBin *fakeeos = (FakeEOSBin *)(bin); */
40
41 switch (GST_MESSAGE_TYPE(message)) {
42 case GST_MESSAGE_EOS:
43 /* what to do here ? just returning at the moment */
44 return ;
45 default:
46 break;
47 }
48
49 GST_BIN_CLASS(parent_class)->handle_message(bin, message);
50}
51
52static void
53fakeeos_bin_base_init(gpointer g_class EINA_UNUSED)
54{
55}
56
57static void
58fakeeos_bin_class_init(FakeEOSBinClass * klass)
59{
60 GstBinClass *gstbin_class = GST_BIN_CLASS(klass);
61
62 gstbin_class->handle_message =
63 GST_DEBUG_FUNCPTR (fakeeos_bin_handle_message);
64}
65
66static void
67fakeeos_bin_init(FakeEOSBin *src EINA_UNUSED,
68 FakeEOSBinClass *klass EINA_UNUSED)
69{
70}