summaryrefslogtreecommitdiffstats
path: root/gst/playondemand
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2003-10-08 16:08:19 +0000
committerAndy Wingo <wingo@pobox.com>2003-10-08 16:08:19 +0000
commitc07813ac2ca2a969ac4f46b7f2bcaee731f0ca79 (patch)
tree88f65b715d1fa83677b13286b3681a6096b5dcf2 /gst/playondemand
parent69edaac422d50a0e365fae15d354c07c0f5419d4 (diff)
downloadgst-plugins-bad-c07813ac2ca2a969ac4f46b7f2bcaee731f0ca79.tar.gz
gst-plugins-bad-c07813ac2ca2a969ac4f46b7f2bcaee731f0ca79.tar.bz2
gst-plugins-bad-c07813ac2ca2a969ac4f46b7f2bcaee731f0ca79.zip
/GstBuffer/GstData/ in the API where you can pass events. Fix the plugins to deal with that. Fixes #113488.
Original commit message from CVS: /GstBuffer/GstData/ in the API where you can pass events. Fix the plugins to deal with that. Fixes #113488.
Diffstat (limited to 'gst/playondemand')
-rw-r--r--gst/playondemand/filter.func8
-rw-r--r--gst/playondemand/gstplayondemand.c2
2 files changed, 5 insertions, 5 deletions
diff --git a/gst/playondemand/filter.func b/gst/playondemand/filter.func
index 7c9f4de7..a07edf4e 100644
--- a/gst/playondemand/filter.func
+++ b/gst/playondemand/filter.func
@@ -6,7 +6,7 @@ filter_data = (_TYPE_ *) filter->buffer;
num_filter = filter->buffer_bytes / sizeof(_TYPE_);
do {
- if (in == NULL && ! filter->eos) in = gst_pad_pull(filter->sinkpad);
+ if (in == NULL && ! filter->eos) in = GST_BUFFER (gst_pad_pull(filter->sinkpad));
/****************************************************************************/
/* see if we've got any events coming through ... */
@@ -23,10 +23,10 @@ do {
filter->eos = FALSE;
filter->write = 0;
} else {
- gst_pad_push(filter->srcpad, in);
+ gst_pad_push(filter->srcpad, GST_DATA (in));
}
- in = gst_pad_pull(filter->sinkpad);
+ in = GST_BUFFER (gst_pad_pull(filter->sinkpad));
}
/****************************************************************************/
@@ -114,7 +114,7 @@ do {
/****************************************************************************/
/* push out the buffer. */
- gst_pad_push(filter->srcpad, out);
+ gst_pad_push(filter->srcpad, GST_DATA (out));
if (gst_element_interrupt (GST_ELEMENT (filter))) break;
diff --git a/gst/playondemand/gstplayondemand.c b/gst/playondemand/gstplayondemand.c
index 0876f7d0..b53d4be9 100644
--- a/gst/playondemand/gstplayondemand.c
+++ b/gst/playondemand/gstplayondemand.c
@@ -434,7 +434,7 @@ play_on_demand_loop (GstElement *elem)
filter->bufpool = gst_buffer_pool_get_default(GST_POD_BUFPOOL_SIZE,
GST_POD_BUFPOOL_NUM);
- in = gst_pad_pull(filter->sinkpad);
+ in = GST_BUFFER (gst_pad_pull(filter->sinkpad));
if (filter->format == GST_PLAYONDEMAND_FORMAT_INT) {
if (filter->width == 16) {