summaryrefslogtreecommitdiffstats
path: root/src/pulsesink.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pulsesink.c')
-rw-r--r--src/pulsesink.c50
1 files changed, 25 insertions, 25 deletions
diff --git a/src/pulsesink.c b/src/pulsesink.c
index a1f5990..1d8e432 100644
--- a/src/pulsesink.c
+++ b/src/pulsesink.c
@@ -42,8 +42,8 @@ enum {
static GstAudioSinkClass *parent_class = NULL;
-static void gst_pulsesink_destroy_stream(GstPolypSink *pulsesink);
-static void gst_pulsesink_destroy_context(GstPolypSink *pulsesink);
+static void gst_pulsesink_destroy_stream(GstPulseSink *pulsesink);
+static void gst_pulsesink_destroy_context(GstPulseSink *pulsesink);
static void gst_pulsesink_set_property(GObject *object, guint prop_id, const GValue *value, GParamSpec *pspec);
static void gst_pulsesink_get_property(GObject *object, guint prop_id, GValue *value, GParamSpec *pspec);
@@ -158,7 +158,7 @@ static void gst_pulsesink_init(
GTypeInstance * instance,
gpointer g_class) {
- GstPolypSink *pulsesink = GST_PULSESINK(instance);
+ GstPulseSink *pulsesink = GST_PULSESINK(instance);
int e;
pulsesink->server = pulsesink->device = pulsesink->stream_name = NULL;
@@ -173,7 +173,7 @@ static void gst_pulsesink_init(
g_assert(e == 0);
}
-static void gst_pulsesink_destroy_stream(GstPolypSink* pulsesink) {
+static void gst_pulsesink_destroy_stream(GstPulseSink* pulsesink) {
if (pulsesink->stream) {
pa_stream_disconnect(pulsesink->stream);
pa_stream_unref(pulsesink->stream);
@@ -184,7 +184,7 @@ static void gst_pulsesink_destroy_stream(GstPolypSink* pulsesink) {
pulsesink->stream_name = NULL;
}
-static void gst_pulsesink_destroy_context(GstPolypSink* pulsesink) {
+static void gst_pulsesink_destroy_context(GstPulseSink* pulsesink) {
gst_pulsesink_destroy_stream(pulsesink);
@@ -196,7 +196,7 @@ static void gst_pulsesink_destroy_context(GstPolypSink* pulsesink) {
}
static void gst_pulsesink_finalize(GObject * object) {
- GstPolypSink *pulsesink = GST_PULSESINK(object);
+ GstPulseSink *pulsesink = GST_PULSESINK(object);
pa_threaded_mainloop_stop(pulsesink->mainloop);
@@ -220,7 +220,7 @@ static void gst_pulsesink_set_property(
guint prop_id,
const GValue * value,
GParamSpec * pspec) {
- GstPolypSink *pulsesink = GST_PULSESINK(object);
+ GstPulseSink *pulsesink = GST_PULSESINK(object);
switch (prop_id) {
case PROP_SERVER:
@@ -245,7 +245,7 @@ static void gst_pulsesink_get_property(
GValue * value,
GParamSpec * pspec) {
- GstPolypSink *pulsesink = GST_PULSESINK(object);
+ GstPulseSink *pulsesink = GST_PULSESINK(object);
switch(prop_id) {
case PROP_SERVER:
@@ -263,7 +263,7 @@ static void gst_pulsesink_get_property(
}
static void gst_pulsesink_context_state_cb(pa_context *c, void *userdata) {
- GstPolypSink *pulsesink = GST_PULSESINK(userdata);
+ GstPulseSink *pulsesink = GST_PULSESINK(userdata);
switch (pa_context_get_state(c)) {
case PA_CONTEXT_READY:
@@ -281,7 +281,7 @@ static void gst_pulsesink_context_state_cb(pa_context *c, void *userdata) {
}
static void gst_pulsesink_stream_state_cb(pa_stream *s, void * userdata) {
- GstPolypSink *pulsesink = GST_PULSESINK(userdata);
+ GstPulseSink *pulsesink = GST_PULSESINK(userdata);
switch (pa_stream_get_state(s)) {
@@ -298,19 +298,19 @@ static void gst_pulsesink_stream_state_cb(pa_stream *s, void * userdata) {
}
static void gst_pulsesink_stream_request_cb(pa_stream *s, size_t length, void *userdata) {
- GstPolypSink *pulsesink = GST_PULSESINK(userdata);
+ GstPulseSink *pulsesink = GST_PULSESINK(userdata);
pa_threaded_mainloop_signal(pulsesink->mainloop, 0);
}
static void gst_pulsesink_stream_latency_update_cb(pa_stream *s, void *userdata) {
- GstPolypSink *pulsesink = GST_PULSESINK(userdata);
+ GstPulseSink *pulsesink = GST_PULSESINK(userdata);
pa_threaded_mainloop_signal(pulsesink->mainloop, 0);
}
static gboolean gst_pulsesink_open(GstAudioSink *asink) {
- GstPolypSink *pulsesink = GST_PULSESINK(asink);
+ GstPulseSink *pulsesink = GST_PULSESINK(asink);
gchar *name = gst_pulse_client_name();
pa_threaded_mainloop_lock(pulsesink->mainloop);
@@ -347,7 +347,7 @@ unlock_and_fail:
}
static gboolean gst_pulsesink_close(GstAudioSink *asink) {
- GstPolypSink *pulsesink = GST_PULSESINK(asink);
+ GstPulseSink *pulsesink = GST_PULSESINK(asink);
pa_threaded_mainloop_lock(pulsesink->mainloop);
gst_pulsesink_destroy_context(pulsesink);
@@ -359,7 +359,7 @@ static gboolean gst_pulsesink_close(GstAudioSink *asink) {
static gboolean gst_pulsesink_prepare(GstAudioSink *asink, GstRingBufferSpec *spec) {
pa_buffer_attr buf_attr;
- GstPolypSink *pulsesink = GST_PULSESINK(asink);
+ GstPulseSink *pulsesink = GST_PULSESINK(asink);
if (!gst_pulse_fill_sample_spec(spec, &pulsesink->sample_spec)) {
GST_ELEMENT_ERROR(pulsesink, RESOURCE, SETTINGS, ("Invalid sample specification."), (NULL));
@@ -414,7 +414,7 @@ unlock_and_fail:
}
static gboolean gst_pulsesink_unprepare(GstAudioSink * asink) {
- GstPolypSink *pulsesink = GST_PULSESINK(asink);
+ GstPulseSink *pulsesink = GST_PULSESINK(asink);
pa_threaded_mainloop_lock(pulsesink->mainloop);
gst_pulsesink_destroy_stream(pulsesink);
@@ -431,7 +431,7 @@ if (!(pulsesink)->context || pa_context_get_state((pulsesink)->context) != PA_CO
}
static guint gst_pulsesink_write(GstAudioSink *asink, gpointer data, guint length) {
- GstPolypSink *pulsesink = GST_PULSESINK(asink);
+ GstPulseSink *pulsesink = GST_PULSESINK(asink);
size_t sum = 0;
pa_threaded_mainloop_lock(pulsesink->mainloop);
@@ -478,7 +478,7 @@ unlock_and_fail:
}
static guint gst_pulsesink_delay(GstAudioSink *asink) {
- GstPolypSink *pulsesink = GST_PULSESINK(asink);
+ GstPulseSink *pulsesink = GST_PULSESINK(asink);
pa_usec_t t;
pa_threaded_mainloop_lock(pulsesink->mainloop);
@@ -508,14 +508,14 @@ unlock_and_fail:
}
static void gst_pulsesink_success_cb(pa_stream *s, int success, void *userdata) {
- GstPolypSink *pulsesink = GST_PULSESINK(userdata);
+ GstPulseSink *pulsesink = GST_PULSESINK(userdata);
pulsesink->operation_success = success;
pa_threaded_mainloop_signal(pulsesink->mainloop, 0);
}
static void gst_pulsesink_reset(GstAudioSink *asink) {
- GstPolypSink *pulsesink = GST_PULSESINK(asink);
+ GstPulseSink *pulsesink = GST_PULSESINK(asink);
pa_operation *o = NULL;
pa_threaded_mainloop_lock(pulsesink->mainloop);
@@ -549,7 +549,7 @@ unlock_and_fail:
pa_threaded_mainloop_unlock(pulsesink->mainloop);
}
-static void gst_pulsesink_change_title(GstPolypSink *pulsesink, const gchar *t) {
+static void gst_pulsesink_change_title(GstPulseSink *pulsesink, const gchar *t) {
pa_operation *o = NULL;
pa_threaded_mainloop_lock(pulsesink->mainloop);
@@ -578,7 +578,7 @@ unlock_and_fail:
}
static gboolean gst_pulsesink_event(GstBaseSink *sink, GstEvent *event) {
- GstPolypSink *pulsesink = GST_PULSESINK(sink);
+ GstPulseSink *pulsesink = GST_PULSESINK(sink);
switch (GST_EVENT_TYPE(event)) {
case GST_EVENT_TAG: {
@@ -625,20 +625,20 @@ GType gst_pulsesink_get_type(void) {
if (!pulsesink_type) {
static const GTypeInfo pulsesink_info = {
- sizeof(GstPolypSinkClass),
+ sizeof(GstPulseSinkClass),
gst_pulsesink_base_init,
NULL,
gst_pulsesink_class_init,
NULL,
NULL,
- sizeof(GstPolypSink),
+ sizeof(GstPulseSink),
0,
gst_pulsesink_init,
};
pulsesink_type = g_type_register_static(
GST_TYPE_AUDIO_SINK,
- "GstPolypSink",
+ "GstPulseSink",
&pulsesink_info,
0);
}