summaryrefslogtreecommitdiffstats
path: root/gst/playondemand/gstplayondemand.c
diff options
context:
space:
mode:
authorDavid Schleef <ds@schleef.org>2003-12-21 22:11:46 +0000
committerDavid Schleef <ds@schleef.org>2003-12-21 22:11:46 +0000
commit0d9a29465920184a2f1ae1d21be9d8598dd33b93 (patch)
treef2a81f79d8968ea82550fa7b430d9f3f1930865d /gst/playondemand/gstplayondemand.c
parentb2c18cf78125b584585f0c229338738c4c16eb9f (diff)
downloadgst-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 'gst/playondemand/gstplayondemand.c')
-rw-r--r--gst/playondemand/gstplayondemand.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/gst/playondemand/gstplayondemand.c b/gst/playondemand/gstplayondemand.c
index 3f01165a..0dec3835 100644
--- a/gst/playondemand/gstplayondemand.c
+++ b/gst/playondemand/gstplayondemand.c
@@ -81,7 +81,6 @@ static void play_on_demand_get_property (GObject *object, guint prop_id, GValue
static void play_on_demand_dispose (GObject *object);
/* GStreamer functionality */
-static GstBufferPool* play_on_demand_get_bufferpool (GstPad *pad);
static GstPadLinkReturn play_on_demand_pad_link (GstPad *pad, const GstCaps2 *caps);
static void play_on_demand_loop (GstElement *elem);
static void play_on_demand_set_clock (GstElement *elem, GstClock *clock);
@@ -236,7 +235,6 @@ play_on_demand_init (GstPlayOnDemand *filter)
filter->sinkpad = gst_pad_new_from_template(
gst_static_pad_template_get(&play_on_demand_sink_template), "sink");
- gst_pad_set_bufferpool_function(filter->sinkpad, play_on_demand_get_bufferpool);
gst_pad_set_link_function(filter->sinkpad, play_on_demand_pad_link);
gst_element_add_pad(GST_ELEMENT(filter), filter->sinkpad);
@@ -366,14 +364,6 @@ play_on_demand_dispose (GObject *object)
g_free (filter->buffer);
}
-static GstBufferPool*
-play_on_demand_get_bufferpool (GstPad *pad)
-{
- GstPlayOnDemand *filter;
- filter = GST_PLAYONDEMAND(gst_pad_get_parent(pad));
- return gst_pad_get_bufferpool(filter->srcpad);
-}
-
static GstPadLinkReturn
play_on_demand_pad_link (GstPad *pad, const GstCaps2 *caps)
{
@@ -433,12 +423,6 @@ play_on_demand_loop (GstElement *elem)
g_return_if_fail(filter != NULL);
g_return_if_fail(GST_IS_PLAYONDEMAND(filter));
- filter->bufpool = gst_pad_get_bufferpool(filter->srcpad);
-
- if (filter->bufpool == NULL)
- filter->bufpool = gst_buffer_pool_get_default(GST_POD_BUFPOOL_SIZE,
- GST_POD_BUFPOOL_NUM);
-
in = (in == NULL && ! filter->eos) ? gst_pad_pull(filter->sinkpad) : NULL;
if (filter->format == GST_PLAYONDEMAND_FORMAT_INT) {