emotion: forgotten file.

SVN revision: 61950
This commit is contained in:
Cedric BAIL 2011-08-01 12:42:16 +00:00
parent ecadef9ee9
commit 6e011beb8d
1 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,32 @@
#include <glib.h>
#include <gst/gst.h>
#include <gst/video/video.h>
#include <gst/video/gstvideosink.h>
#include <Ecore.h>
#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);
}