Commit graph

  • 929526de33 Convert most snprintf() calls to pa_snprintf() Lennart Poettering 2007-07-25 16:23:03 +00:00
  • 8e83838154 Modernize things a little bith more Lennart Poettering 2007-07-25 15:50:40 +00:00
  • 2a43bbf206 Modernize things a little Lennart Poettering 2007-07-25 15:50:09 +00:00
  • 2380ad9254 add our own implementation for pa_snprintf() because NUL termination is apparently not guaranteed on windows and a couple of other libcs Lennart Poettering 2007-07-25 15:49:35 +00:00
  • 9e9dc0b14d Simplify implementation of pa_assert_se() Lennart Poettering 2007-07-25 15:44:28 +00:00
  • 068f5d5eef drop chunk argument from various drop() functions, since it doesn't make any sense if we want to guarantee always monotonously increasing read pointers; a couple of other fixes Lennart Poettering 2007-07-25 14:46:40 +00:00
  • 9cc20b46b7 update static free list usage in asyncmsgq Lennart Poettering 2007-07-25 14:44:25 +00:00
  • e339d4b9c4 update static free list usage in hashmap Lennart Poettering 2007-07-25 14:44:00 +00:00
  • f42e4438eb destruct freelists properly, by using gcc destructors. we do this only to make valgrind shut up, not because it would have any real value during runtime Lennart Poettering 2007-07-25 14:43:05 +00:00
  • 279b1b3311 wrap destructor gcc attribute in macro Lennart Poettering 2007-07-25 14:41:54 +00:00
  • a094923fd5 change order of munmap and freeing of memblocks Lennart Poettering 2007-07-25 14:40:12 +00:00
  • c76d035dad Fix a couple of typos in the resampler code Lennart Poettering 2007-07-14 11:26:55 +00:00
  • 2a19c466bc Fix typo in pa_memblock_release() call; s/assert/pa_assert/ Lennart Poettering 2007-07-13 23:28:11 +00:00
  • 65d54d6aaf s/assert/pa_assert/g; make use of static flist for memblock allocation where applicable; properly initialize length value in pa_memexport_put() Lennart Poettering 2007-07-13 23:27:15 +00:00
  • 0e84f044dd Minor clarification Lennart Poettering 2007-07-13 23:23:03 +00:00
  • f2c98d7483 Make use of static flist for hashmap entry alllocation Lennart Poettering 2007-07-13 23:22:38 +00:00
  • 69bfa351ba Actually make the static flist static Lennart Poettering 2007-07-13 23:21:54 +00:00
  • 3b912ac41f Port module-sine to the new lock-free core Lennart Poettering 2007-07-13 12:14:30 +00:00
  • 8442926483 Reenable a couple of more modules Lennart Poettering 2007-07-13 12:13:55 +00:00
  • 59faa5d38b Remove a superfluous pa_memblock_release(); properly handle buf4 allocation Lennart Poettering 2007-07-13 12:13:25 +00:00
  • 63c231ed36 Fix concurrency bug when turning memblock into a local memblock Lennart Poettering 2007-07-13 12:12:40 +00:00
  • 481b425a28 Fix off-by-one in mixing code Lennart Poettering 2007-07-13 12:11:19 +00:00
  • ca5874da9b Replace a couple of assert()s by pa_assert()s Lennart Poettering 2007-07-13 12:10:44 +00:00
  • ac1387d3cc Remove module-oss-mmap, since it is now merged into module-oss Lennart Poettering 2007-07-13 00:15:59 +00:00
  • a42c19edc7 Merge module-oss-mmap into module-oss and make suspending working properly Lennart Poettering 2007-07-13 00:14:11 +00:00
  • 295e1c83ac Make pa_sink_render_* and pa_source_post work only when in RUNNING state, to fix handling of monitor sources when their sink is suspended Lennart Poettering 2007-07-13 00:09:59 +00:00
  • 0a095f6266 Properly initialize all revents on EINTR Lennart Poettering 2007-07-12 16:15:35 +00:00
  • 1a84664edb Make sure pollfd[POLLFD_ASYNCQ].revents is properly initialized on signal Lennart Poettering 2007-07-12 16:00:51 +00:00
  • 683fc4cef8 fix segfault when recording with module-oss.c Lennart Poettering 2007-07-12 15:40:29 +00:00
  • b0f692c45d Make sure we link to the core to get all symbols. Pierre Ossman 2007-07-10 15:21:03 +00:00
  • a228a517c4 Solaris hides inet_ntop in nsl. Pierre Ossman 2007-07-10 15:20:39 +00:00
  • 689fd706ef Make -no-undefined actually work (and fix up error found by it). Pierre Ossman 2007-07-10 14:36:58 +00:00
  • 405d6758ef Move pthreads detection as it gets confused by things in LIBS. Pierre Ossman 2007-07-10 14:36:20 +00:00
  • eec2fbe623 Port module-oss to the new lock-free core Lennart Poettering 2007-06-25 22:54:06 +00:00
  • 63129389c9 remove pa_memblockq_is_writable() (because it is stupid and not used anywhere anyway, and replace all assert()s with pa_assert()s Lennart Poettering 2007-06-25 22:53:09 +00:00
  • a482b9fd99 make sure we don't free the same connection twice Lennart Poettering 2007-06-25 22:33:04 +00:00
  • 67766785a5 Limit silence buffer size for pa_sink_render() Lennart Poettering 2007-06-24 16:17:30 +00:00
  • de02c74916 Track the 'missing' variable safely between the threads Lennart Poettering 2007-06-24 16:17:02 +00:00
  • d873731810 rework the logic of pa_asyncq Lennart Poettering 2007-06-24 16:15:56 +00:00
  • 77ebe70443 Make sure the returned pa_msgobject object has a valid refcnt before returning it Lennart Poettering 2007-06-24 16:11:52 +00:00
  • 099f3f22d1 Include assert.h, since we use assert() for our pa_assert() macro Lennart Poettering 2007-06-24 16:10:12 +00:00
  • a9fcd5956b Fix length calculation in pa_silence_memblock_new() and make use of pa_assert() everywhere instead of assert() Lennart Poettering 2007-06-24 16:09:43 +00:00
  • fdd3ac97ff Make use of dbus_watch_get_unix_fd() instead of dbus_watch_get_fd() because of deprecation of the latter Lennart Poettering 2007-06-24 16:06:32 +00:00
  • bb3ad9d38e Update OSS driver for new lock-free core Lennart Poettering 2007-06-23 20:05:20 +00:00
  • 013a55a692 remove underrun condition in pa_sinks. Instead return silence in pa_sink_render() when necessary. This is required to guarantee that the time functions in connected sink inputs stays linear Lennart Poettering 2007-06-23 20:04:47 +00:00
  • 780f736547 don't handle underrun special Lennart Poettering 2007-06-23 20:03:30 +00:00
  • f0616367b3 drop silence generation from sink drivers Lennart Poettering 2007-06-23 20:03:00 +00:00
  • fff9081c4b fix a typo and some minor optimizations Lennart Poettering 2007-06-23 20:02:28 +00:00
  • 1c9bd201ec minor cleanups and optimizations Lennart Poettering 2007-06-23 20:01:40 +00:00
  • e24c8dea5b Fix minor typo Lennart Poettering 2007-06-23 19:53:11 +00:00
  • deb523e0e8 Port module-pipe-source to the new threaded design Lennart Poettering 2007-06-14 20:15:06 +00:00
  • 94f6ab5fba Fix another ugly typo, which made source outputs unusable Lennart Poettering 2007-06-14 20:14:33 +00:00
  • e279778848 use pa_memblockq_push_align() instead of pa_memblockq_push() to deal with unaligned data coming from clients Lennart Poettering 2007-06-14 20:13:44 +00:00
  • 1d7096b19e Show memchunk length in debug output Lennart Poettering 2007-06-14 20:12:26 +00:00
  • 1c62ce6f86 Fix a nasty typo in pa_asyncq_pop Lennart Poettering 2007-06-14 20:11:46 +00:00
  • 572c77f418 Remove anotify.[ch], since it is now entirely replaced by pa_asyncmsgq Lennart Poettering 2007-06-14 18:48:40 +00:00
  • 5e72ac353e rework sink input/source output state machine Lennart Poettering 2007-06-14 17:12:40 +00:00
  • 260dd1e886 Make debug message more useful Lennart Poettering 2007-06-14 17:06:11 +00:00
  • 1b99fd2fc4 Move a few things between the threads Lennart Poettering 2007-06-14 17:01:01 +00:00
  • 111dcd5e34 trivial cleanups Lennart Poettering 2007-06-14 16:53:40 +00:00
  • be4a882836 A lot of more work to get the lock-free stuff in place Lennart Poettering 2007-06-13 22:08:14 +00:00
  • 0694d2ae35 Make sure mixer ioctls work on /dev/dsp aswell. Pierre Ossman 2007-06-13 07:21:57 +00:00
  • 69115687ad make untabify Lennart Poettering 2007-06-11 13:53:31 +00:00
  • 590ae20d4d Add new untabify makefile target Lennart Poettering 2007-06-11 13:53:16 +00:00
  • a4fed0fbb5 make eolspace Lennart Poettering 2007-06-11 12:17:40 +00:00
  • 00da37f2c4 Merge HUGE set of changes temporarily into a branch, to allow me to move them from one machine to another (lock-free and stuff) Lennart Poettering 2007-06-11 12:08:37 +00:00
  • 6aeec56708 add a new private branch Lennart Poettering 2007-06-11 12:00:02 +00:00
  • 14cbbe1096 Support stat() and friends as some programs (audacity) likes to check if the device node is there first. Pierre Ossman 2007-06-11 11:22:30 +00:00
  • 13a4c5290a Add support for the poorly documented SNDCTL_DSP_GETTRIGGER. Pierre Ossman 2007-06-04 09:52:03 +00:00
  • 1e12e0ee8d Kill spaces on EOL Lennart Poettering 2007-05-29 17:24:48 +00:00
  • e4d63d0d80 add target "eolspace" to makefil to remove trailing newlines from all source files Lennart Poettering 2007-05-29 17:16:24 +00:00
  • 5530d3295a We now use gid unconditionally, so make sure it's defined. Pierre Ossman 2007-05-29 07:47:02 +00:00
  • 67cb77575f build fix for systems lacking capability suppoort. (Problem identified and original patch supplied by Diego Petteno Lennart Poettering 2007-05-28 15:52:13 +00:00
  • 4366a6b4eb Tagging release 0.9.6 v0.9.6 Lennart Poettering 2007-05-27 21:22:56 +00:00
  • 707def14fc Bump revision of libs and package Lennart Poettering 2007-05-27 20:58:29 +00:00
  • 918cacb4f4 Replace AO_xxx usage with pa_atomic_xxx and friends wherever it makes sense Lennart Poettering 2007-05-27 20:38:14 +00:00
  • 6a2dffd78a unfortunately we cannot detect if a foreign thread is still running. Thus sucks. But what can we do? U. Drepper thinks our use case is invalid. Lennart Poettering 2007-05-27 16:59:34 +00:00
  • 872018efc8 Minor optimization: read log level character code from array Lennart Poettering 2007-05-27 16:37:05 +00:00
  • d949983845 Add a new meta command ".ifexists" to the CLI language, to execute commands only if a specified file exists. Original patch from cjvdb. Closes #36 Lennart Poettering 2007-05-26 23:39:33 +00:00
  • 4d88fcd59d when called with the setid bit change euid to uid sooner to make sure that we can access our own files even when we dropped most capabilities. (Closes #21) Lennart Poettering 2007-05-25 20:35:30 +00:00
  • 65e8761683 fix suid Makefile target Lennart Poettering 2007-05-25 20:24:55 +00:00
  • 003264213c only browse for ipv4 pa servers for now. Needs better fixing which however is not trivial and probably breaks the API Lennart Poettering 2007-05-23 23:38:28 +00:00
  • 79c94db7a6 Fix another DoS vulnerability that has been identified by Luigi Auriemma. (Finally closes #67) Lennart Poettering 2007-05-23 17:24:06 +00:00
  • 30c52e56c3 add a missing initialization that causes a crash when parsing invalid volume restoration tables (Problem identified by Luigi Auriemma, re #67) Lennart Poettering 2007-05-23 17:12:07 +00:00
  • 33304ba118 Fix a DoS with allocating overly large silence buffers. (Identified by Luigi Auriemma (re #67) Lennart Poettering 2007-05-23 16:59:03 +00:00
  • 4a05bc9bdc don't allow excessively high sample rates Lennart Poettering 2007-05-23 16:57:35 +00:00
  • cf925b10e1 Fix yet another DoS vulnerability, also identified Luigi Auriemma (re #67) Lennart Poettering 2007-05-23 16:42:26 +00:00
  • c3b5de77bc fix minor typo Lennart Poettering 2007-05-23 16:30:57 +00:00
  • f90339528b Fix another DoS vulnerability, also identified Luigi Auriemma (closes #67) Lennart Poettering 2007-05-23 16:29:18 +00:00
  • 407a1b6efe fix a DoS vulnerability (re #67), originally identified by Luigi Auriemma Lennart Poettering 2007-05-23 16:24:54 +00:00
  • 8e738ede9b fix a few obvious copynpaste errors when handling volumes Lennart Poettering 2007-05-23 15:30:34 +00:00
  • 0e53f939c0 Treat empty :0.0 identically to unset :0.0 when trying to find a PA server. (Closes #87) Lennart Poettering 2007-05-23 12:32:37 +00:00
  • 312c326def Fix module-oss for devices that return EAGAIN when we don't expect it. (Closes #66) Lennart Poettering 2007-05-23 01:02:06 +00:00
  • 01ddb54889 show socket directory when we fail to create it. (Closes #85) Lennart Poettering 2007-05-22 23:39:47 +00:00
  • 960b5cbd10 Fix build and only load OSS xor ALSA modules if both are available Lennart Poettering 2007-05-22 23:38:22 +00:00
  • e41b91eec9 drop unused variable Lennart Poettering 2007-05-22 23:37:27 +00:00
  • 16dd5f7872 fix comment Lennart Poettering 2007-05-22 23:08:34 +00:00
  • 9ee398107e Add support for SNDCTL_DSP_SETTRIGGER. (closes #56) Pierre Ossman 2007-03-07 09:27:30 +00:00
  • f6023cb5ee Fix some instances where we printed a string without first checking that the pointer was valid. Pierre Ossman 2007-03-06 15:47:11 +00:00
  • e042a90a53 Pulsecore should be linked into all modules. Pierre Ossman 2007-03-06 13:42:30 +00:00