From 2c308e5dd4e07eccaadbeed40c0cb83598aa425d Mon Sep 17 00:00:00 2001 From: cedric Date: Mon, 1 Aug 2011 12:42:16 +0000 Subject: [PATCH] emotion: forgotten file. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/emotion@61950 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/modules/gstreamer/emotion_alloc.c | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 src/modules/gstreamer/emotion_alloc.c 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); +} -- 2.7.4