diff options
author | Andy Wingo <wingo@pobox.com> | 2003-10-08 16:08:19 +0000 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2003-10-08 16:08:19 +0000 |
commit | c07813ac2ca2a969ac4f46b7f2bcaee731f0ca79 (patch) | |
tree | 88f65b715d1fa83677b13286b3681a6096b5dcf2 /ext/swfdec/gstswfdec.c | |
parent | 69edaac422d50a0e365fae15d354c07c0f5419d4 (diff) | |
download | gstreamer-plugins-bad-c07813ac2ca2a969ac4f46b7f2bcaee731f0ca79.tar.gz |
/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 'ext/swfdec/gstswfdec.c')
-rw-r--r-- | ext/swfdec/gstswfdec.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/swfdec/gstswfdec.c b/ext/swfdec/gstswfdec.c index 119c0403b..5bfa9d392 100644 --- a/ext/swfdec/gstswfdec.c +++ b/ext/swfdec/gstswfdec.c @@ -206,7 +206,7 @@ gst_swfdec_loop(GstElement *element) ret = swfdec_decoder_parse(swfdec->state); if(ret==SWF_NEEDBITS){ - buf = gst_pad_pull(swfdec->sinkpad); + buf = GST_BUFFER (gst_pad_pull(swfdec->sinkpad)); if(GST_IS_EVENT(buf)){ switch (GST_EVENT_TYPE (buf)) { case GST_EVENT_EOS: @@ -253,7 +253,7 @@ gst_swfdec_loop(GstElement *element) swfdec->timestamp += swfdec->interval; GST_BUFFER_TIMESTAMP(newbuf) = swfdec->timestamp; - gst_pad_push(swfdec->videopad, newbuf); + gst_pad_push(swfdec->videopad, GST_DATA (newbuf)); /* audio stuff */ @@ -265,15 +265,15 @@ gst_swfdec_loop(GstElement *element) GST_BUFFER_DATA(newbuf) = data; GST_BUFFER_TIMESTAMP(newbuf) = swfdec->timestamp; - gst_pad_push(swfdec->audiopad, newbuf); + gst_pad_push(swfdec->audiopad, GST_DATA (newbuf)); data = swfdec_decoder_get_sound_chunk(swfdec->state, &len); } } if(ret==SWF_EOF){ - gst_pad_push(swfdec->videopad, GST_BUFFER (gst_event_new (GST_EVENT_EOS))); - gst_pad_push(swfdec->audiopad, GST_BUFFER (gst_event_new (GST_EVENT_EOS))); + gst_pad_push(swfdec->videopad, GST_DATA (gst_event_new (GST_EVENT_EOS))); + gst_pad_push(swfdec->audiopad, GST_DATA (gst_event_new (GST_EVENT_EOS))); } } |