From c07813ac2ca2a969ac4f46b7f2bcaee731f0ca79 Mon Sep 17 00:00:00 2001 From: Andy Wingo Date: Wed, 8 Oct 2003 16:08:19 +0000 Subject: /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. --- gst/mpeg2sub/gstmpeg2subt.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'gst/mpeg2sub') 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; -- cgit v1.2.1