summaryrefslogtreecommitdiff
path: root/legacy/emotion/src/modules/gstreamer/emotion_sink.c
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2011-12-30 11:46:29 +0000
committerVincent Torri <vincent.torri@gmail.com>2011-12-30 11:46:29 +0000
commit1fb8ee18d98e68a48a9488429a76a7b0a21699f7 (patch)
tree02afc180be029204faa85df0d9688c0bebfbef88 /legacy/emotion/src/modules/gstreamer/emotion_sink.c
parentf981adaaaca5100fe082c406d26a0da008a27e4d (diff)
Emotion:fix compilation on Windows
Note1: disable generic plugin on Windows as shm_open like function note implemented on that platform yet. Note2: want_module stuff must be fixed in the m4 macro Note3: abstract semaphore code in Eina ? SVN revision: 66686
Diffstat (limited to '')
-rw-r--r--legacy/emotion/src/modules/gstreamer/emotion_sink.c26
1 files changed, 22 insertions, 4 deletions
diff --git a/legacy/emotion/src/modules/gstreamer/emotion_sink.c b/legacy/emotion/src/modules/gstreamer/emotion_sink.c
index 339a36c2a1..1e8b05098b 100644
--- a/legacy/emotion/src/modules/gstreamer/emotion_sink.c
+++ b/legacy/emotion/src/modules/gstreamer/emotion_sink.c
@@ -1,3 +1,21 @@
1#ifdef HAVE_CONFIG_H
2# include "config.h"
3#endif
4
5#include <Eina.h>
6#include <Evas.h>
7#include <Ecore.h>
8
9#define HTTP_STREAM 0
10#define RTSP_STREAM 1
11#include <glib.h>
12#include <gst/gst.h>
13#include <glib-object.h>
14#include <gst/video/gstvideosink.h>
15#include <gst/video/video.h>
16
17#include "Emotion.h"
18#include "emotion_private.h"
1#include "emotion_gstreamer.h" 19#include "emotion_gstreamer.h"
2 20
3static GstStaticPadTemplate sinktemplate = GST_STATIC_PAD_TEMPLATE("sink", 21static GstStaticPadTemplate sinktemplate = GST_STATIC_PAD_TEMPLATE("sink",
@@ -831,9 +849,9 @@ static void
831_video_resize(void *data, Evas_Object *obj __UNUSED__, const Evas_Video_Surface *surface __UNUSED__, 849_video_resize(void *data, Evas_Object *obj __UNUSED__, const Evas_Video_Surface *surface __UNUSED__,
832 Evas_Coord w, Evas_Coord h) 850 Evas_Coord w, Evas_Coord h)
833{ 851{
852#ifdef HAVE_ECORE_X
834 Emotion_Gstreamer_Video *ev = data; 853 Emotion_Gstreamer_Video *ev = data;
835 854
836#ifdef HAVE_ECORE_X
837 ecore_x_window_resize(ev->win, w, h); 855 ecore_x_window_resize(ev->win, w, h);
838#endif 856#endif
839 fprintf(stderr, "resize: %i, %i\n", w, h); 857 fprintf(stderr, "resize: %i, %i\n", w, h);
@@ -843,8 +861,8 @@ static void
843_video_move(void *data, Evas_Object *obj __UNUSED__, const Evas_Video_Surface *surface __UNUSED__, 861_video_move(void *data, Evas_Object *obj __UNUSED__, const Evas_Video_Surface *surface __UNUSED__,
844 Evas_Coord x, Evas_Coord y) 862 Evas_Coord x, Evas_Coord y)
845{ 863{
846 Emotion_Gstreamer_Video *ev = data;
847#ifdef HAVE_ECORE_X 864#ifdef HAVE_ECORE_X
865 Emotion_Gstreamer_Video *ev = data;
848 unsigned int pos[2]; 866 unsigned int pos[2];
849 867
850 fprintf(stderr, "move: %i, %i\n", x, y); 868 fprintf(stderr, "move: %i, %i\n", x, y);
@@ -890,10 +908,10 @@ _block_pad_link_cb(GstPad *pad, gboolean blocked, gpointer user_data)
890static void 908static void
891_video_show(void *data, Evas_Object *obj __UNUSED__, const Evas_Video_Surface *surface __UNUSED__) 909_video_show(void *data, Evas_Object *obj __UNUSED__, const Evas_Video_Surface *surface __UNUSED__)
892{ 910{
911#ifdef HAVE_ECORE_X
893 Emotion_Gstreamer_Video *ev = data; 912 Emotion_Gstreamer_Video *ev = data;
894 913
895 fprintf(stderr, "show xv\n"); 914 fprintf(stderr, "show xv\n");
896#ifdef HAVE_ECORE_X
897 ecore_x_window_show(ev->win); 915 ecore_x_window_show(ev->win);
898#endif 916#endif
899 /* gst_pad_set_blocked_async(ev->teepad, TRUE, _block_pad_link_cb, ev); */ 917 /* gst_pad_set_blocked_async(ev->teepad, TRUE, _block_pad_link_cb, ev); */
@@ -902,10 +920,10 @@ _video_show(void *data, Evas_Object *obj __UNUSED__, const Evas_Video_Surface *s
902static void 920static void
903_video_hide(void *data, Evas_Object *obj __UNUSED__, const Evas_Video_Surface *surface __UNUSED__) 921_video_hide(void *data, Evas_Object *obj __UNUSED__, const Evas_Video_Surface *surface __UNUSED__)
904{ 922{
923#ifdef HAVE_ECORE_X
905 Emotion_Gstreamer_Video *ev = data; 924 Emotion_Gstreamer_Video *ev = data;
906 925
907 fprintf(stderr, "hide xv\n"); 926 fprintf(stderr, "hide xv\n");
908#ifdef HAVE_ECORE_X
909 ecore_x_window_hide(ev->win); 927 ecore_x_window_hide(ev->win);
910#endif 928#endif
911 /* gst_pad_set_blocked_async(ev->teepad, TRUE, _block_pad_unlink_cb, ev); */ 929 /* gst_pad_set_blocked_async(ev->teepad, TRUE, _block_pad_unlink_cb, ev); */