summaryrefslogtreecommitdiffstats
path: root/gst/mpeg2sub
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/mpeg2sub
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/mpeg2sub')
-rw-r--r--gst/mpeg2sub/gstmpeg2subt.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/gst/mpeg2sub/gstmpeg2subt.c b/gst/mpeg2sub/gstmpeg2subt.c
index 1a290b76..3dda7a38 100644
--- a/gst/mpeg2sub/gstmpeg2subt.c
+++ b/gst/mpeg2sub/gstmpeg2subt.c
@@ -27,8 +27,8 @@
static void gst_mpeg2subt_class_init (GstMpeg2SubtClass *klass);
static void gst_mpeg2subt_init (GstMpeg2Subt *mpeg2subt);
-static void gst_mpeg2subt_chain_video (GstPad *pad,GstBuffer *buf);
-static void gst_mpeg2subt_chain_subtitle (GstPad *pad,GstBuffer *buf);
+static void gst_mpeg2subt_chain_video (GstPad *pad,GstData *_data);
+static void gst_mpeg2subt_chain_subtitle (GstPad *pad,GstData *_data);
static void gst_mpeg2subt_merge_title (GstMpeg2Subt *mpeg2subt, GstBuffer *buf);
@@ -152,8 +152,9 @@ gst_mpeg2subt_init (GstMpeg2Subt *mpeg2subt)
}
static void
-gst_mpeg2subt_chain_video (GstPad *pad, GstBuffer *buf)
+gst_mpeg2subt_chain_video (GstPad *pad, GstData *_data)
{
+ GstBuffer *buf = GST_BUFFER (_data);
GstMpeg2Subt *mpeg2subt;
guchar *data;
glong size;
@@ -172,7 +173,7 @@ gst_mpeg2subt_chain_video (GstPad *pad, GstBuffer *buf)
mpeg2subt->duration--;
}
- gst_pad_push(mpeg2subt->srcpad, buf);
+ gst_pad_push(mpeg2subt->srcpad, GST_DATA (buf));
}
@@ -346,8 +347,9 @@ next_line:
}
static void
-gst_mpeg2subt_chain_subtitle (GstPad *pad, GstBuffer *buf)
+gst_mpeg2subt_chain_subtitle (GstPad *pad, GstData *_data)
{
+ GstBuffer *buf = GST_BUFFER (_data);
GstMpeg2Subt *mpeg2subt;
guchar *data;
glong size = 0;