]> code.delx.au - pulseaudio/blobdiff - src/sinkinput.c
main part of the native protocol
[pulseaudio] / src / sinkinput.c
index 2e6a8c36672b220e57c7f38a5ad5424f7c86e4ae..b81c9c7135f8999db4c60bc885a04a59c93a3e56 100644 (file)
@@ -5,7 +5,7 @@
 #include "sinkinput.h"
 #include "strbuf.h"
 
-struct sink_input* sink_input_new(struct sink *s, struct sample_spec *spec, const char *name) {
+struct sink_input* sink_input_new(struct sink *s, struct pa_sample_spec *spec, const char *name) {
     struct sink_input *i;
     int r;
     assert(s && spec);
@@ -14,7 +14,7 @@ struct sink_input* sink_input_new(struct sink *s, struct sample_spec *spec, cons
     assert(i);
     i->name = name ? strdup(name) : NULL;
     i->sink = s;
-    i->spec = *spec;
+    i->sample_spec = *spec;
 
     i->peek = NULL;
     i->drop = NULL;