summaryrefslogtreecommitdiffstats
path: root/src/pulseprobe.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pulseprobe.c')
-rw-r--r--src/pulseprobe.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/pulseprobe.c b/src/pulseprobe.c
index adb5212..0e487e4 100644
--- a/src/pulseprobe.c
+++ b/src/pulseprobe.c
@@ -30,7 +30,7 @@ GST_DEBUG_CATEGORY_EXTERN(pulse_debug);
#define GST_CAT_DEFAULT pulse_debug
static void gst_pulseprobe_context_state_cb(pa_context *context, void *userdata) {
- GstPolypProbe *c = (GstPolypProbe*) userdata;
+ GstPulseProbe *c = (GstPulseProbe*) userdata;
/* Called from the background thread! */
@@ -50,7 +50,7 @@ static void gst_pulseprobe_context_state_cb(pa_context *context, void *userdata)
}
static void gst_pulseprobe_sink_info_cb(pa_context *context, const pa_sink_info *i, int eol, void *userdata) {
- GstPolypProbe *c = (GstPolypProbe*) userdata;
+ GstPulseProbe *c = (GstPulseProbe*) userdata;
/* Called from the background thread! */
@@ -65,7 +65,7 @@ static void gst_pulseprobe_sink_info_cb(pa_context *context, const pa_sink_info
}
static void gst_pulseprobe_source_info_cb(pa_context *context, const pa_source_info *i, int eol, void *userdata) {
- GstPolypProbe *c = (GstPolypProbe*) userdata;
+ GstPulseProbe *c = (GstPulseProbe*) userdata;
/* Called from the background thread! */
@@ -78,14 +78,14 @@ static void gst_pulseprobe_source_info_cb(pa_context *context, const pa_source_i
c->devices = g_list_append(c->devices, g_strdup(i->name));
}
-static void gst_pulseprobe_invalidate(GstPolypProbe *c) {
+static void gst_pulseprobe_invalidate(GstPulseProbe *c) {
g_list_foreach(c->devices, (GFunc) g_free, NULL);
g_list_free(c->devices);
c->devices = NULL;
c->devices_valid = 0;
}
-static gboolean gst_pulseprobe_open(GstPolypProbe *c) {
+static gboolean gst_pulseprobe_open(GstPulseProbe *c) {
int e;
gchar *name = gst_pulse_client_name();
@@ -143,7 +143,7 @@ if (!(c)->context || pa_context_get_state((c)->context) != PA_CONTEXT_READY) { \
} \
} while(0);
-static gboolean gst_pulseprobe_enumerate(GstPolypProbe *c) {
+static gboolean gst_pulseprobe_enumerate(GstPulseProbe *c) {
pa_operation *o = NULL;
pa_threaded_mainloop_lock(c->mainloop);
@@ -210,7 +210,7 @@ unlock_and_fail:
return FALSE;
}
-static void gst_pulseprobe_close(GstPolypProbe *c) {
+static void gst_pulseprobe_close(GstPulseProbe *c) {
g_assert(c);
if (c->mainloop)
@@ -228,10 +228,10 @@ static void gst_pulseprobe_close(GstPolypProbe *c) {
}
}
-GstPolypProbe* gst_pulseprobe_new(GObjectClass *klass, guint prop_id, const gchar *server, gboolean sinks, gboolean sources) {
- GstPolypProbe *c = NULL;
+GstPulseProbe* gst_pulseprobe_new(GObjectClass *klass, guint prop_id, const gchar *server, gboolean sinks, gboolean sources) {
+ GstPulseProbe *c = NULL;
- c = g_new(GstPolypProbe, 1);
+ c = g_new(GstPulseProbe, 1);
c->server = g_strdup(server);
c->enumerate_sinks = sinks;
c->enumerate_sources = sources;
@@ -247,7 +247,7 @@ GstPolypProbe* gst_pulseprobe_new(GObjectClass *klass, guint prop_id, const gcha
return c;
}
-void gst_pulseprobe_free(GstPolypProbe* c) {
+void gst_pulseprobe_free(GstPulseProbe* c) {
g_assert(c);
gst_pulseprobe_close(c);
@@ -261,11 +261,11 @@ void gst_pulseprobe_free(GstPolypProbe* c) {
g_free(c);
}
-const GList* gst_pulseprobe_get_properties(GstPolypProbe *c) {
+const GList* gst_pulseprobe_get_properties(GstPulseProbe *c) {
return c->properties;
}
-gboolean gst_pulseprobe_needs_probe(GstPolypProbe *c, guint prop_id, const GParamSpec *pspec) {
+gboolean gst_pulseprobe_needs_probe(GstPulseProbe *c, guint prop_id, const GParamSpec *pspec) {
if (prop_id == c->prop_id)
return !c->devices_valid;
@@ -274,7 +274,7 @@ gboolean gst_pulseprobe_needs_probe(GstPolypProbe *c, guint prop_id, const GPara
return FALSE;
}
-void gst_pulseprobe_probe_property(GstPolypProbe *c, guint prop_id, const GParamSpec *pspec) {
+void gst_pulseprobe_probe_property(GstPulseProbe *c, guint prop_id, const GParamSpec *pspec) {
if (prop_id != c->prop_id) {
G_OBJECT_WARN_INVALID_PROPERTY_ID(c, prop_id, pspec);
@@ -287,7 +287,7 @@ void gst_pulseprobe_probe_property(GstPolypProbe *c, guint prop_id, const GParam
}
}
-GValueArray *gst_pulseprobe_get_values(GstPolypProbe *c, guint prop_id, const GParamSpec *pspec) {
+GValueArray *gst_pulseprobe_get_values(GstPulseProbe *c, guint prop_id, const GParamSpec *pspec) {
GValueArray *array;
GValue value = { 0 };
GList *item;
@@ -312,7 +312,7 @@ GValueArray *gst_pulseprobe_get_values(GstPolypProbe *c, guint prop_id, const GP
return array;
}
-void gst_pulseprobe_set_server(GstPolypProbe *c, const gchar *server) {
+void gst_pulseprobe_set_server(GstPulseProbe *c, const gchar *server) {
g_assert(c);
gst_pulseprobe_invalidate(c);