diff options
author | David Schleef <ds@schleef.org> | 2003-12-21 22:11:46 +0000 |
---|---|---|
committer | David Schleef <ds@schleef.org> | 2003-12-21 22:11:46 +0000 |
commit | 0d9a29465920184a2f1ae1d21be9d8598dd33b93 (patch) | |
tree | f2a81f79d8968ea82550fa7b430d9f3f1930865d /sys/glsink | |
parent | b2c18cf78125b584585f0c229338738c4c16eb9f (diff) | |
download | gst-plugins-bad-0d9a29465920184a2f1ae1d21be9d8598dd33b93.tar.gz gst-plugins-bad-0d9a29465920184a2f1ae1d21be9d8598dd33b93.tar.bz2 gst-plugins-bad-0d9a29465920184a2f1ae1d21be9d8598dd33b93.zip |
Remove bufferpools (but keep implementations)
Original commit message from CVS:
Remove bufferpools (but keep implementations)
Diffstat (limited to 'sys/glsink')
-rw-r--r-- | sys/glsink/gstglsink.c | 27 |
1 files changed, 2 insertions, 25 deletions
diff --git a/sys/glsink/gstglsink.c b/sys/glsink/gstglsink.c index 15e8926e..3e1e56ce 100644 --- a/sys/glsink/gstglsink.c +++ b/sys/glsink/gstglsink.c @@ -107,8 +107,6 @@ struct _GstGLSink { GstClock *clock; - /* bufferpool stuff */ - GstBufferPool *bufferpool; GMutex *cache_lock; GList *cache; @@ -139,7 +137,6 @@ static void gst_glsink_set_clock (GstElement *element, GstClock *clock); static GstElementStateReturn gst_glsink_change_state (GstElement *element); static GstPadLinkReturn gst_glsink_sinkconnect (GstPad *pad, GstCaps *caps); static GstCaps * gst_glsink_getcaps (GstPad *pad, GstCaps *caps); -static GstBufferPool* gst_glsink_get_bufferpool (GstPad *pad); static void gst_glsink_set_property (GObject *object, guint prop_id, const GValue *value, GParamSpec *pspec); @@ -149,13 +146,6 @@ static void gst_glsink_get_property (GObject *object, guint prop_id, static void gst_glsink_release_conn (GstGLSink *sink); static void gst_glsink_append_cache (GstGLSink *sink, GstImageData *image); static gboolean gst_glsink_set_caps (GstGLSink *sink, GstCaps *caps); -/* bufferpool stuff */ -static GstBuffer* gst_glsink_buffer_new (GstBufferPool *pool, - gint64 location, - guint size, gpointer user_data); -static void gst_glsink_buffer_free (GstBufferPool *pool, - GstBuffer *buffer, - gpointer user_data); /* prototypes from plugins */ extern GstImagePlugin* get_gl_rgbimage_plugin (void); @@ -278,13 +268,6 @@ gst_glsink_init (GstGLSink *sink) /* create bufferpool and image cache */ GST_DEBUG ("glsink: creating bufferpool"); - sink->bufferpool = gst_buffer_pool_new ( - NULL, - NULL, - (GstBufferPoolBufferNewFunction)gst_glsink_buffer_new, - NULL, - (GstBufferPoolBufferFreeFunction)gst_glsink_buffer_free, - sink); sink->cache_lock = g_mutex_new(); sink->cache = NULL; @@ -332,6 +315,7 @@ gst_glsink_append_cache (GstGLSink *sink, GstImageData *image) g_mutex_unlock (sink->cache_lock); } +#if 0 /* Create a new buffer to hand up the chain. This allows the plugins to make its own decoding buffers @@ -380,14 +364,7 @@ gst_glsink_buffer_free (GstBufferPool *pool, GstBuffer *buffer, gpointer user_da gst_buffer_default_free (buffer); } - -static GstBufferPool* -gst_glsink_get_bufferpool (GstPad *pad) -{ - GstGLSink *sink = GST_GLSINK (gst_pad_get_parent (pad)); - - return sink->bufferpool; -} +#endif /* Set the caps that the application desires. |