From: cedric Date: Wed, 31 Aug 2011 15:48:47 +0000 (+0000) Subject: emotion: evas is going to support more video format than ffmpeg... X-Git-Tag: submit/2.0alpha-wayland/20121127.222018~184 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3a8334bb9404ed7aa4b3a780c5239d53473eea4b;p=profile%2Fivi%2Femotion.git emotion: evas is going to support more video format than ffmpeg... git-svn-id: http://svn.enlightenment.org/svn/e/trunk/emotion@63038 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/modules/gstreamer/emotion_sink.c b/src/modules/gstreamer/emotion_sink.c index c19f3a9..3ae40bd 100644 --- a/src/modules/gstreamer/emotion_sink.c +++ b/src/modules/gstreamer/emotion_sink.c @@ -799,6 +799,7 @@ gstreamer_video_sink_new(Emotion_Gstreamer_Video *ev, GstElement *playbin; GstElement *sink; Evas_Object *obj; + int flags; obj = emotion_object_image_get(o); if (!obj) @@ -821,9 +822,15 @@ gstreamer_video_sink_new(Emotion_Gstreamer_Video *ev, goto unref_pipeline; } +#define GST_PLAY_FLAG_NATIVE_VIDEO (1 << 6) +#define GST_PLAY_FLAG_DOWNLOAD (1 << 7) +#define GST_PLAY_FLAG_BUFFERING (1 << 8) + g_object_set(G_OBJECT(sink), "evas-object", obj, NULL); g_object_set(G_OBJECT(sink), "ev", ev, NULL); + g_object_get(G_OBJECT(playbin), "flags", &flags, NULL); + g_object_set(G_OBJECT(playbin), "flags", flags | GST_PLAY_FLAG_NATIVE_VIDEO | GST_PLAY_FLAG_DOWNLOAD | GST_PLAY_FLAG_BUFFERING, NULL); g_object_set(G_OBJECT(playbin), "video-sink", sink, NULL); g_object_set(G_OBJECT(playbin), "uri", uri, NULL);