diff options
author | Lennart Poettering <lennart@poettering.net> | 2009-01-22 00:22:29 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2009-01-22 00:26:34 +0100 |
commit | 1c84251ec5c0f7b60d12e2cca73871d779e4e0d3 (patch) | |
tree | 2a44b97dd33bf996ccc6b4c0135f935d33ce498a /src | |
parent | 8519f54a0eaefb0e84586b354c260a999a595e22 (diff) |
fix segfault when in record-only mode
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/oss/module-oss.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/oss/module-oss.c b/src/modules/oss/module-oss.c index 79cbf67a..da9245ae 100644 --- a/src/modules/oss/module-oss.c +++ b/src/modules/oss/module-oss.c @@ -877,7 +877,7 @@ static void thread_func(void *userdata) { /* pa_log("loop"); */ - if (PA_SINK_IS_OPENED(u->sink->thread_info.state)) + if (u->sink && PA_SINK_IS_OPENED(u->sink->thread_info.state)) if (u->sink->thread_info.rewind_requested) pa_sink_process_rewind(u->sink, 0); |