summaryrefslogtreecommitdiffstats
path: root/gst/smpte
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/smpte
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/smpte')
-rw-r--r--gst/smpte/gstsmpte.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gst/smpte/gstsmpte.c b/gst/smpte/gstsmpte.c
index bf042e4c..488d9515 100644
--- a/gst/smpte/gstsmpte.c
+++ b/gst/smpte/gstsmpte.c
@@ -323,18 +323,18 @@ gst_smpte_loop (GstElement *element)
ts = smpte->position * GST_SECOND / smpte->fps;
while (GST_PAD_IS_USABLE (smpte->sinkpad1) && in1 == NULL) {
- in1 = gst_pad_pull (smpte->sinkpad1);
+ in1 = GST_BUFFER (gst_pad_pull (smpte->sinkpad1));
if (GST_IS_EVENT (in1)) {
- gst_pad_push (smpte->srcpad, in1);
+ gst_pad_push (smpte->srcpad, GST_DATA (in1));
in1 = NULL;
}
else
ts = GST_BUFFER_TIMESTAMP (in1);
}
if (GST_PAD_IS_USABLE (smpte->sinkpad2) && in2 == NULL) {
- in2 = gst_pad_pull (smpte->sinkpad2);
+ in2 = GST_BUFFER (gst_pad_pull (smpte->sinkpad2));
if (GST_IS_EVENT (in2)) {
- gst_pad_push (smpte->srcpad, in2);
+ gst_pad_push (smpte->srcpad, GST_DATA (in2));
in2 = NULL;
}
else
@@ -390,7 +390,7 @@ gst_smpte_loop (GstElement *element)
gst_buffer_unref (in2);
GST_BUFFER_TIMESTAMP (outbuf) = ts;
- gst_pad_push (smpte->srcpad, outbuf);
+ gst_pad_push (smpte->srcpad, GST_DATA (outbuf));
}
static void