[pulseaudio-commits] r1206 - /trunk/src/modules/module-null-sink.c
svnmailer-noreply at 0pointer.de
svnmailer-noreply at 0pointer.de
Fri Aug 11 17:25:53 PDT 2006
Author: lennart
Date: Sat Aug 12 02:25:52 2006
New Revision: 1206
URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=1206&root=pulseaudio&view=rev
Log:
allow setting the null sink description by a module parameter
Modified:
trunk/src/modules/module-null-sink.c
Modified: trunk/src/modules/module-null-sink.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/modules/module-null-sink.c?rev=1206&root=pulseaudio&r1=1205&r2=1206&view=diff
==============================================================================
--- trunk/src/modules/module-null-sink.c (original)
+++ trunk/src/modules/module-null-sink.c Sat Aug 12 02:25:52 2006
@@ -53,7 +53,8 @@
"channels=<number of channels> "
"rate=<sample rate> "
"sink_name=<name of sink>"
- "channel_map=<channel map>")
+ "channel_map=<channel map>"
+ "description=<description for the sink>")
#define DEFAULT_SINK_NAME "null"
@@ -73,7 +74,8 @@
"format",
"channels",
"sink_name",
- "channel_map",
+ "channel_map",
+ "description",
NULL
};
@@ -141,7 +143,7 @@
u->sink->get_latency = get_latency;
u->sink->userdata = u;
pa_sink_set_owner(u->sink, m);
- pa_sink_set_description(u->sink, "NULL sink");
+ pa_sink_set_description(u->sink, pa_modargs_get_value(ma, "description", "NULL sink"));
u->n_bytes = 0;
pa_gettimeofday(&u->start_time);
More information about the pulseaudio-commits
mailing list