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. --- sys/vcd/vcdsrc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sys/vcd') diff --git a/sys/vcd/vcdsrc.c b/sys/vcd/vcdsrc.c index 272b530c..1ee3a83d 100644 --- a/sys/vcd/vcdsrc.c +++ b/sys/vcd/vcdsrc.c @@ -68,7 +68,7 @@ static void vcdsrc_init (VCDSrc *vcdsrc); static void vcdsrc_set_property (GObject *object, guint prop_id, const GValue *value, GParamSpec *pspec); static void vcdsrc_get_property (GObject *object, guint prop_id, GValue *value, GParamSpec *pspec); -static GstBuffer * vcdsrc_get (GstPad *pad); +static GstData * vcdsrc_get (GstPad *pad); /*static GstBuffer * vcdsrc_get_region (GstPad *pad,gulong offset,gulong size); */ static GstElementStateReturn vcdsrc_change_state (GstElement *element); @@ -222,7 +222,7 @@ vcdsrc_get_property (GObject *object, guint prop_id, GValue *value, GParamSpec * } } -static GstBuffer * +static GstData * vcdsrc_get (GstPad *pad) { VCDSrc *vcdsrc; @@ -266,7 +266,7 @@ vcdsrc_get (GstPad *pad) if (++error_count > vcdsrc->max_errors) { gst_element_set_eos (GST_ELEMENT (vcdsrc)); - return GST_BUFFER (gst_event_new (GST_EVENT_EOS)); + return GST_DATA (gst_event_new (GST_EVENT_EOS)); } fprintf (stderr, "%s while reading raw data from cdrom at %d:%d:%d\n", @@ -283,7 +283,7 @@ vcdsrc_get (GstPad *pad) GST_BUFFER_SIZE(buf) = vcdsrc->bytes_per_read; vcdsrc->curoffset += 1; - return buf; + return GST_DATA (buf); } /* open the file, necessary to go to RUNNING state */ -- cgit v1.2.1