From 497ff16355e85a7baeb3fada5f1a39450f11e3c9 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 10 Sep 2012 11:32:25 +0200 Subject: [PATCH] update for audio base src api change --- ext/pulse/pulsesrc.c | 5 +++-- sys/oss/gstosssrc.c | 6 ++++-- sys/oss4/oss4-source.c | 5 +++-- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/ext/pulse/pulsesrc.c b/ext/pulse/pulsesrc.c index 41e79dc..2150628 100644 --- a/ext/pulse/pulsesrc.c +++ b/ext/pulse/pulsesrc.c @@ -94,7 +94,7 @@ static gboolean gst_pulsesrc_prepare (GstAudioSrc * asrc, static gboolean gst_pulsesrc_unprepare (GstAudioSrc * asrc); static guint gst_pulsesrc_read (GstAudioSrc * asrc, gpointer data, - guint length); + guint length, GstClockTime * timestamp); static guint gst_pulsesrc_delay (GstAudioSrc * asrc); static void gst_pulsesrc_reset (GstAudioSrc * src); @@ -990,7 +990,8 @@ gst_pulsesrc_unprepare (GstAudioSrc * asrc) } static guint -gst_pulsesrc_read (GstAudioSrc * asrc, gpointer data, guint length) +gst_pulsesrc_read (GstAudioSrc * asrc, gpointer data, guint length, + GstClockTime * timestamp) { GstPulseSrc *pulsesrc = GST_PULSESRC_CAST (asrc); size_t sum = 0; diff --git a/sys/oss/gstosssrc.c b/sys/oss/gstosssrc.c index 923e147..4738c22 100644 --- a/sys/oss/gstosssrc.c +++ b/sys/oss/gstosssrc.c @@ -95,7 +95,8 @@ static gboolean gst_oss_src_close (GstAudioSrc * asrc); static gboolean gst_oss_src_prepare (GstAudioSrc * asrc, GstAudioRingBufferSpec * spec); static gboolean gst_oss_src_unprepare (GstAudioSrc * asrc); -static guint gst_oss_src_read (GstAudioSrc * asrc, gpointer data, guint length); +static guint gst_oss_src_read (GstAudioSrc * asrc, gpointer data, guint length, + GstClockTime * timestamp); static guint gst_oss_src_delay (GstAudioSrc * asrc); static void gst_oss_src_reset (GstAudioSrc * asrc); @@ -505,7 +506,8 @@ couldnt_reopen: } static guint -gst_oss_src_read (GstAudioSrc * asrc, gpointer data, guint length) +gst_oss_src_read (GstAudioSrc * asrc, gpointer data, guint length, + GstClockTime * timestamp) { return read (GST_OSS_SRC (asrc)->fd, data, length); } diff --git a/sys/oss4/oss4-source.c b/sys/oss4/oss4-source.c index 606545f..c193616 100644 --- a/sys/oss4/oss4-source.c +++ b/sys/oss4/oss4-source.c @@ -94,7 +94,7 @@ static gboolean gst_oss4_source_prepare (GstAudioSrc * asrc, GstAudioRingBufferSpec * spec); static gboolean gst_oss4_source_unprepare (GstAudioSrc * asrc); static guint gst_oss4_source_read (GstAudioSrc * asrc, gpointer data, - guint length); + guint length, GstClockTime * timestamp); static guint gst_oss4_source_delay (GstAudioSrc * asrc); static void gst_oss4_source_reset (GstAudioSrc * asrc); @@ -485,7 +485,8 @@ couldnt_reopen: } static guint -gst_oss4_source_read (GstAudioSrc * asrc, gpointer data, guint length) +gst_oss4_source_read (GstAudioSrc * asrc, gpointer data, guint length, + GstClockTime * timestamp) { GstOss4Source *oss; int n; -- 2.7.4