From: cedric Date: Mon, 1 Aug 2011 12:42:16 +0000 (+0000) Subject: emotion: forgotten file. X-Git-Tag: submit/2.0alpha-wayland/20121127.222018~214 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=003ecda97cb7f176aa75963b5a8bbbaddcef809a;p=profile%2Fivi%2Femotion.git emotion: forgotten file. git-svn-id: http://svn.enlightenment.org/svn/e/trunk/emotion@61950 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/modules/gstreamer/emotion_alloc.c b/src/modules/gstreamer/emotion_alloc.c new file mode 100644 index 0000000..da98ac9 --- /dev/null +++ b/src/modules/gstreamer/emotion_alloc.c @@ -0,0 +1,32 @@ +#include +#include +#include +#include + +#include + +#include "emotion_gstreamer.h" + +Emotion_Gstreamer_Buffer * +emotion_gstreamer_buffer_alloc(EvasVideoSinkPrivate *sink, + GstBuffer *buffer, + Eina_Bool preroll) +{ + Emotion_Gstreamer_Buffer *send; + + send = malloc(sizeof (Emotion_Gstreamer_Buffer)); + if (!send) return NULL; + + send->sink = sink; + send->frame = gst_buffer_ref(buffer); + send->preroll = preroll; + + return send; +} + +void +emotion_gstreamer_buffer_free(Emotion_Gstreamer_Buffer *send) +{ + gst_buffer_unref(send->frame); + free(send); +}