mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-12-16 08:56:40 -05:00
No description
In pa_create_stream_callback, a stream is inserted into s->context->record_streams only if it's a record stream. Otherwise it's inserted into s->context->playback_streams. However, in stream_unlink the stream is removed from s->context->playback_streams only if it's a playback stream and otherwise it's removed from s->context->record_streams. Thus, if the stream is an upload stream, we first insert it into s->context->playback_streams in pa_create_stream_callback and then try to remove it unsuccessfully from s->context->record_streams in stream_unlink. This means that we are leaking hashmap entries until the context is freed, constantly consuming more memory with applications that upload and unload a large number of samples through one context. Of course, this begs the question whether upload streams even belong in either of those hashmaps. I don't want to mess around with the code too much at this point though, so this patch should be a sufficient improvement. |
||
|---|---|---|
| doc | ||
| doxygen | ||
| m4 | ||
| man | ||
| po | ||
| src | ||
| vala | ||
| .gitignore | ||
| .mailmap | ||
| autogen.sh | ||
| bootstrap.sh | ||
| configure.ac | ||
| git-version-gen | ||
| GPL | ||
| LGPL | ||
| libpulse-mainloop-glib.pc.in | ||
| libpulse-simple.pc.in | ||
| libpulse.pc.in | ||
| LICENSE | ||
| Makefile.am | ||
| orc.mak | ||
| PROTOCOL | ||
| pulseaudio-text.svg | ||
| pulseaudio.svg | ||
| PulseAudioConfig.cmake.in | ||
| PulseAudioConfigVersion.cmake.in | ||
| README | ||
| todo | ||
PULSEAUDIO SOUND SERVER WEB SITE: http://pulseaudio.org/ GIT: git://anongit.freedesktop.org/pulseaudio/pulseaudio GITWEB/CGIT: http://cgit.freedesktop.org/pulseaudio/pulseaudio/ MAILING LIST: http://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss GIT COMMITS MAILING LIST: http://lists.freedesktop.org/mailman/listinfo/pulseaudio-commits TRAC/BUGZILLA TICKET CHANGES MAILING LIST: http://lists.freedesktop.org/mailman/listinfo/pulseaudio-bugs IRC: #pulseaudio on irc.freenode.org CIA: http://cia.navi.cx/stats/project/polypaudio FRESHMEAT: http://freshmeat.net/projects/pulseaudio/ OHLOH: http://www.ohloh.net/projects/4038 AUTHORS: Several HACKING: In order to run pulseaudio from the build dir __OPTIMIZE__ should be disabled (look at src/pulsecore/core-util.h::pa_run_from_build_tree()), this can be done by passing "CFLAGS=-O0" to the configure script: ./autogen.sh CFLAGS="-ggdb3 -O0" LDFLAGS="-ggdb3" ./configure make ./src/pulseaudio -n -F src/default.pa -p $(pwd)/src/.libs/