emotion: forgotten svn add...
authorcedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 4 Oct 2011 22:46:54 +0000 (22:46 +0000)
committercedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 4 Oct 2011 22:46:54 +0000 (22:46 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/emotion@63816 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/modules/gstreamer/emotion_fakeeos.c [new file with mode: 0644]

diff --git a/src/modules/gstreamer/emotion_fakeeos.c b/src/modules/gstreamer/emotion_fakeeos.c
new file mode 100644 (file)
index 0000000..f583187
--- /dev/null
@@ -0,0 +1,50 @@
+#include "emotion_gstreamer.h"
+
+typedef struct _FakeEOSBin
+{
+   GstBin parent;
+} FakeEOSBin;
+
+typedef struct _FakeEOSBinClass
+{
+   GstBinClass parent;
+} FakeEOSBinClass;
+
+GST_BOILERPLATE(FakeEOSBin, fakeeos_bin, GstBin,
+                GST_TYPE_BIN);
+
+static void
+fakeeos_bin_handle_message(GstBin * bin, GstMessage * message)
+{
+   FakeEOSBin *fakeeos = (FakeEOSBin *)(bin);
+
+   switch (GST_MESSAGE_TYPE(message)) {
+    case GST_MESSAGE_EOS:
+       /* what to do here ? just returning at the moment */
+       return ;
+    default:
+       break;
+   }
+
+   GST_BIN_CLASS(parent_class)->handle_message(bin, message);
+}
+
+static void
+fakeeos_bin_base_init(gpointer g_class __UNUSED__)
+{
+}
+
+static void
+fakeeos_bin_class_init(FakeEOSBinClass * klass)
+{
+   GstBinClass *gstbin_class = GST_BIN_CLASS(klass);
+
+   gstbin_class->handle_message =
+     GST_DEBUG_FUNCPTR (fakeeos_bin_handle_message);
+}
+
+static void
+fakeeos_bin_init(FakeEOSBin *src __UNUSED__,
+                 FakeEOSBinClass *klass __UNUSED__)
+{
+}