summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorRonald S. Bultje <rbultje@ronald.bitfreak.net>2003-10-14 10:09:11 +0000
committerRonald S. Bultje <rbultje@ronald.bitfreak.net>2003-10-14 10:09:11 +0000
commit0775f2156e0929e1b9eef759d6f48b2f8ef16065 (patch)
treeb68ed4844e0fa37dca1d74afa3959d9afeceb4c0 /sys
parenta365faa43a7fe8ca20ffb2249502db7b45e4bebb (diff)
downloadgst-plugins-bad-0775f2156e0929e1b9eef759d6f48b2f8ef16065.tar.gz
gst-plugins-bad-0775f2156e0929e1b9eef759d6f48b2f8ef16065.tar.bz2
gst-plugins-bad-0775f2156e0929e1b9eef759d6f48b2f8ef16065.zip
Fix for Andy's GstBuffer->GstData changes
Original commit message from CVS: Fix for Andy's GstBuffer->GstData changes
Diffstat (limited to 'sys')
-rw-r--r--sys/dxr3/dxr3audiosink.c26
1 files changed, 16 insertions, 10 deletions
diff --git a/sys/dxr3/dxr3audiosink.c b/sys/dxr3/dxr3audiosink.c
index 35e9d99c..c13743ce 100644
--- a/sys/dxr3/dxr3audiosink.c
+++ b/sys/dxr3/dxr3audiosink.c
@@ -136,8 +136,8 @@ static void dxr3audiosink_set_scr (Dxr3AudioSink *sink,
static gboolean dxr3audiosink_handle_event (GstPad *pad,
GstEvent *event);
-static void dxr3audiosink_chain_pcm (GstPad *pad,GstBuffer *buf);
-static void dxr3audiosink_chain_ac3 (GstPad *pad, GstBuffer *buf);
+static void dxr3audiosink_chain_pcm (GstPad *pad,GstData *buf);
+static void dxr3audiosink_chain_ac3 (GstPad *pad, GstData *buf);
/* static void dxr3audiosink_wait (Dxr3AudioSink *sink, */
/* GstClockTime time); */
@@ -571,22 +571,25 @@ dxr3audiosink_handle_event (GstPad *pad, GstEvent *event)
static void
-dxr3audiosink_chain_pcm (GstPad *pad, GstBuffer *buf)
+dxr3audiosink_chain_pcm (GstPad *pad, GstData *_data)
{
Dxr3AudioSink *sink;
gint bytes_written = 0;
+ GstBuffer *buf;
g_return_if_fail (pad != NULL);
g_return_if_fail (GST_IS_PAD (pad));
- g_return_if_fail (buf != NULL);
+ g_return_if_fail (_data != NULL);
sink = DXR3AUDIOSINK (gst_pad_get_parent (pad));
- if (GST_IS_EVENT (buf)) {
- dxr3audiosink_handle_event (pad, GST_EVENT (buf));
+ if (GST_IS_EVENT (_data)) {
+ dxr3audiosink_handle_event (pad, GST_EVENT (_data));
return;
}
+ buf = GST_BUFFER (_data);
+
if (sink->mode != DXR3AUDIOSINK_MODE_PCM) {
/* Switch to PCM mode. */
dxr3audiosink_set_mode_pcm (sink);
@@ -633,22 +636,25 @@ dxr3audiosink_chain_pcm (GstPad *pad, GstBuffer *buf)
static void
-dxr3audiosink_chain_ac3 (GstPad *pad, GstBuffer *buf)
+dxr3audiosink_chain_ac3 (GstPad *pad, GstData *_data)
{
Dxr3AudioSink *sink;
gint bytes_written = 0;
+ GstBuffer *buf;
g_return_if_fail (pad != NULL);
g_return_if_fail (GST_IS_PAD (pad));
- g_return_if_fail (buf != NULL);
+ g_return_if_fail (_data != NULL);
sink = DXR3AUDIOSINK (gst_pad_get_parent (pad));
- if (GST_IS_EVENT (buf)) {
- dxr3audiosink_handle_event (pad, GST_EVENT (buf));
+ if (GST_IS_EVENT (_data)) {
+ dxr3audiosink_handle_event (pad, GST_EVENT (_data));
return;
}
+ buf = GST_BUFFER (_data);
+
if (sink->mode != DXR3AUDIOSINK_MODE_AC3) {
/* Switch to AC3 mode. */
dxr3audiosink_set_mode_ac3 (sink);