summaryrefslogtreecommitdiffstats
path: root/ext/esd
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2003-10-08 16:08:18 +0000
committerAndy Wingo <wingo@pobox.com>2003-10-08 16:08:18 +0000
commitf2d5cae8daade402e9d74a829d2b87283167aaa7 (patch)
treecbb13b82d43fa41ffaf6c93973e80c2f620ebf8e /ext/esd
parent9246e543319c072c52fffa51259a2cf927c8dd43 (diff)
/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/esd')
-rw-r--r--ext/esd/esdmon.c6
-rw-r--r--ext/esd/esdsink.c5
2 files changed, 6 insertions, 5 deletions
diff --git a/ext/esd/esdmon.c b/ext/esd/esdmon.c
index ae8d4fd4..de7e1148 100644
--- a/ext/esd/esdmon.c
+++ b/ext/esd/esdmon.c
@@ -92,7 +92,7 @@ static void gst_esdmon_close_audio (GstEsdmon *src);
static GstElementStateReturn gst_esdmon_change_state (GstElement *element);
static gboolean gst_esdmon_sync_parms (GstEsdmon *esdmon);
-static GstBuffer * gst_esdmon_get (GstPad *pad);
+static GstData * gst_esdmon_get (GstPad *pad);
static void gst_esdmon_set_property (GObject *object, guint prop_id,
const GValue *value, GParamSpec *pspec);
@@ -225,7 +225,7 @@ gst_esdmon_sync_parms (GstEsdmon *esdmon)
return gst_esdmon_open_audio (esdmon);
}
-static GstBuffer *
+static GstData *
gst_esdmon_get (GstPad *pad)
{
GstEsdmon *esdmon;
@@ -282,7 +282,7 @@ gst_esdmon_get (GstPad *pad)
esdmon->samples_since_basetime += readsamples;
GST_DEBUG ("pushed buffer from esdmon of %ld bytes, timestamp %" G_GINT64_FORMAT, readbytes, GST_BUFFER_TIMESTAMP (buf));
- return buf;
+ return GST_DATA (buf);
}
static void
diff --git a/ext/esd/esdsink.c b/ext/esd/esdsink.c
index 2e114786..711c43fc 100644
--- a/ext/esd/esdsink.c
+++ b/ext/esd/esdsink.c
@@ -93,7 +93,7 @@ static GstPadLinkReturn gst_esdsink_sinkconnect (GstPad *pad, GstCaps *caps);
static GstClockTime gst_esdsink_get_time (GstClock *clock, gpointer data);
static GstClock * gst_esdsink_get_clock (GstElement *element);
static void gst_esdsink_set_clock (GstElement *element, GstClock *clock);
-static void gst_esdsink_chain (GstPad *pad, GstBuffer *buf);
+static void gst_esdsink_chain (GstPad *pad, GstData *_data);
static void gst_esdsink_set_property (GObject *object, guint prop_id,
const GValue *value, GParamSpec *pspec);
@@ -259,8 +259,9 @@ gst_esdsink_set_clock (GstElement *element, GstClock *clock)
}
static void
-gst_esdsink_chain (GstPad *pad, GstBuffer *buf)
+gst_esdsink_chain (GstPad *pad, GstData *_data)
{
+ GstBuffer *buf = GST_BUFFER (_data);
GstEsdsink *esdsink;
esdsink = GST_ESDSINK (gst_pad_get_parent (pad));