summaryrefslogtreecommitdiffstats
path: root/src/polypcore/sound-file-stream.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/polypcore/sound-file-stream.c')
-rw-r--r--src/polypcore/sound-file-stream.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/polypcore/sound-file-stream.c b/src/polypcore/sound-file-stream.c
index e242cfea..ca762d6a 100644
--- a/src/polypcore/sound-file-stream.c
+++ b/src/polypcore/sound-file-stream.c
@@ -158,11 +158,9 @@ int pa_play_file(pa_sink *sink, const char *fname, const pa_cvolume *volume) {
goto fail;
}
- if (!(u->sink_input = pa_sink_input_new(sink, __FILE__, fname, &ss, NULL, 0, -1)))
+ if (!(u->sink_input = pa_sink_input_new(sink, __FILE__, fname, &ss, NULL, volume, 0, -1)))
goto fail;
- if (volume)
- u->sink_input->volume = *volume;
u->sink_input->peek = sink_input_peek;
u->sink_input->drop = sink_input_drop;
u->sink_input->kill = sink_input_kill;