]> git.tue.mpg.de Git - paraslash.git/log
paraslash.git
18 years agointroduce para_fgets(), a wrapper for fgets()
Andre [Sat, 30 Sep 2006 19:17:23 +0000 (21:17 +0200)]
introduce para_fgets(), a wrapper for fgets()

stdio sucks badly. The only serious user of fgets() is para_server's
get_user() function. So make it use the wrapper and simplify it as
we're at it.

18 years agoMerge ../paraslash.fml/paraslash
Andre [Thu, 28 Sep 2006 17:54:41 +0000 (19:54 +0200)]
Merge ../paraslash.fml/paraslash

18 years agoconfigure.ac: print optional executables in configuration output
Andre [Mon, 25 Sep 2006 18:53:00 +0000 (20:53 +0200)]
configure.ac: print optional executables in configuration output

18 years agoconfigure.ac: fix para_slider configuration
Andre [Mon, 25 Sep 2006 18:35:12 +0000 (20:35 +0200)]
configure.ac: fix para_slider configuration

It depends on GLIB, so add a check for GLIB that was removed
long ago as ortp dropped glib.

18 years agonew audiod option: clock_diff_count
Andre [Sun, 24 Sep 2006 09:26:31 +0000 (11:26 +0200)]
new audiod option: clock_diff_count

18 years agoaudiod struct status_task documentation update
Andre [Thu, 21 Sep 2006 19:22:52 +0000 (21:22 +0200)]
audiod struct status_task documentation update

18 years agowidth adjustments for the colorful blackness theme
Andre [Wed, 20 Sep 2006 18:14:02 +0000 (20:14 +0200)]
width adjustments for the colorful blackness theme

18 years agoadd documentation for struct osx_buffer
Andre Noll [Tue, 19 Sep 2006 11:42:32 +0000 (13:42 +0200)]
add documentation for struct osx_buffer

18 years agodaemon.c: para_drop_privileges: kill duplicate call to setuid()
Andre [Sat, 16 Sep 2006 22:01:31 +0000 (00:01 +0200)]
daemon.c: para_drop_privileges: kill duplicate call to setuid()

Also add missing documentation of the parameters of this function.

18 years agocolorful blackness gui theme: adjust field with for 80 chars terminals
Andre [Tue, 12 Sep 2006 20:49:32 +0000 (22:49 +0200)]
colorful blackness gui theme: adjust field with for 80 chars terminals

18 years agorobustness fixes for the random selector
Andre [Mon, 11 Sep 2006 22:57:10 +0000 (00:57 +0200)]
robustness fixes for the random selector

- do not abort if stat for an audio file failed. Simply skip this file
  instead.

- return proper error message if custom function failed.

- do not error out if the second scan for audio files yields more
  files than the previous run. This happens if audio files are
  added during the audio file scan of the random selector.

18 years agoNEWS update
Andre Noll [Sat, 9 Sep 2006 16:04:49 +0000 (18:04 +0200)]
NEWS update

18 years agoaudiod: Make audio_formats[] dynamic
Andre Noll [Sat, 9 Sep 2006 16:02:53 +0000 (18:02 +0200)]
audiod: Make audio_formats[] dynamic

It should only contain those audio formats that are actually supported
by audiod.

18 years agoaudiod: fix enum of supported audio formats
Andre Noll [Thu, 31 Aug 2006 20:46:22 +0000 (22:46 +0200)]
audiod: fix enum of supported audio formats

Up to paraslash-0.2.12, audiod always supported every audio format since one
could use an external decoder and player as the stream write command. With the
single threaded audiod of 0.2.13 this is no longer possible, so make the enum
of supported audio formats dynamic, i.e. it only consists of those formats
for which suitable libs were found at compile time by configure.

18 years agoNEWS update
Andre Noll [Thu, 31 Aug 2006 20:05:40 +0000 (22:05 +0200)]
NEWS update

18 years agoMakefile.in: Use new @ortp_cppflags@
Andre Noll [Thu, 31 Aug 2006 20:04:57 +0000 (22:04 +0200)]
Makefile.in: Use new @ortp_cppflags@

18 years agoosx_write.ggo: change default number of buffers from 3 to 5
Andre Noll [Thu, 31 Aug 2006 20:03:34 +0000 (22:03 +0200)]
osx_write.ggo: change default number of buffers from 3 to 5

with 3 buffers there were still audible clips

18 years agoortp_send.c: fix to gcc signedness warnings
Andre Noll [Thu, 31 Aug 2006 20:01:26 +0000 (22:01 +0200)]
ortp_send.c: fix to gcc signedness warnings

18 years agomajor autoconf update
Andre Noll [Thu, 31 Aug 2006 20:00:21 +0000 (22:00 +0200)]
major autoconf update

- switch from AC_ARG_ENABLE to AC_ARG_WITH
- set/unset CPPFLAGS and LDFLAGS for each test separately
- make location of ortp headers/libs configurable, nuke --disable-ortp

18 years agoaudiod.ggo: Update filter help text
Andre Noll [Thu, 31 Aug 2006 19:55:36 +0000 (21:55 +0200)]
audiod.ggo: Update filter help text

The wav filter is no longer needed for audiod.

18 years agoFEATURES update
Andre Noll [Mon, 28 Aug 2006 20:12:49 +0000 (22:12 +0200)]
FEATURES update

the filter output is no longer sent to an external program.

18 years agoDo not build audiod if no audio formats are supported
Andre Noll [Mon, 28 Aug 2006 19:59:51 +0000 (21:59 +0200)]
Do not build audiod if no audio formats are supported

Also, nicify the summary output of configure

18 years agoREADME: small update
Andre Noll [Mon, 28 Aug 2006 18:54:15 +0000 (20:54 +0200)]
README: small update

mention the name of the debian openssl package and update ogg
vorbis doku.

18 years agoosx_write: make number of buffers configurable
Andre Noll [Thu, 24 Aug 2006 18:58:33 +0000 (20:58 +0200)]
osx_write: make number of buffers configurable

Two buffers seems to be too less for mp3.

18 years agoosx_write.c: Kill the typedef for struct osx_buffer
Andre Noll [Thu, 24 Aug 2006 18:29:08 +0000 (20:29 +0200)]
osx_write.c: Kill the typedef for struct osx_buffer

Typedefs are evil.

18 years agoosx_write.c: Kill an unused variable
Andre Noll [Thu, 24 Aug 2006 18:26:10 +0000 (20:26 +0200)]
osx_write.c: Kill an unused variable

18 years agotv_divide(): Check for division by zero
Andre Noll [Wed, 23 Aug 2006 18:38:15 +0000 (20:38 +0200)]
tv_divide(): Check for division by zero

18 years agoosx_write.c: fix pre_select()
Andre Noll [Wed, 23 Aug 2006 18:37:07 +0000 (20:37 +0200)]
osx_write.c: fix pre_select()

The old code was just a quick hack. Good enough for para_write, but
it had no chance to work for para_audiod. Fix it by looking at the
number of bytes left in the current from buffer and calculating the
delay accordingly.

18 years agoosx_write.c: Use realloc() instead of free() and malloc()
Andre Noll [Wed, 23 Aug 2006 10:26:18 +0000 (12:26 +0200)]
osx_write.c: Use realloc() instead of free() and malloc()

Also, kill a silly comment.

18 years agoosx_write.c: trivial simplifications
Andre Noll [Wed, 23 Aug 2006 10:19:13 +0000 (12:19 +0200)]
osx_write.c: trivial simplifications

(a) Kill an outdated comment
(b) free(NULL) is okay

18 years agoNEWS: Document the changes of the configure command line options
Andre Noll [Sun, 20 Aug 2006 18:14:09 +0000 (20:14 +0200)]
NEWS: Document the changes of the configure command line options

18 years agoconfigure.ac: Replace AC_ARG_ENABLE by AC_ARG_WITH
Andre Noll [Sun, 20 Aug 2006 18:02:36 +0000 (20:02 +0200)]
configure.ac: Replace AC_ARG_ENABLE by AC_ARG_WITH

for faad, mad, and mysql as this seems to be more natural.

18 years agoFix the alsa writer
Andre Noll [Sun, 20 Aug 2006 17:01:11 +0000 (19:01 +0200)]
Fix the alsa writer

The previous patch broke compilation of alsa_write.c badly.
Fix is rather large but obvious.

18 years agorename xxx_writer.c to xxx_write.c
Andre Noll [Sun, 20 Aug 2006 16:52:34 +0000 (18:52 +0200)]
rename xxx_writer.c to xxx_write.c

Just to be consistent..

18 years agoosx_write: Kill superfluous NULL-pointer check.
Andre Noll [Sun, 20 Aug 2006 16:07:27 +0000 (18:07 +0200)]
osx_write: Kill superfluous NULL-pointer check.

18 years agoupdate the download webpage.
Andre Noll [Sun, 20 Aug 2006 16:04:25 +0000 (18:04 +0200)]
update the download webpage.

The snapshot is no longer generated nightly, but only if the author feels
lucky, like today :)

18 years agoKill dummy ucred struct
Andre Noll [Sun, 20 Aug 2006 16:01:59 +0000 (18:01 +0200)]
Kill dummy ucred struct

If unix socked credentials are availabe, this code is #ifdef'd out. If it isn't
available (eg. Mac OS) it is unused.

18 years agoAdd UNIT_START errno
Andre Noll [Sun, 20 Aug 2006 15:26:34 +0000 (17:26 +0200)]
Add UNIT_START errno

The old code returned -1 which is a bug.

18 years agoAdd the mosx Authors to CREDITS
Andre Noll [Sun, 20 Aug 2006 15:22:18 +0000 (17:22 +0200)]
Add the mosx Authors to CREDITS

18 years agoosx_write: kill superfluous semaphore code
Andre Noll [Sun, 20 Aug 2006 15:12:35 +0000 (17:12 +0200)]
osx_write: kill superfluous semaphore code

18 years agoosx_write: fix mono streams
Andre Noll [Sun, 20 Aug 2006 13:55:28 +0000 (15:55 +0200)]
osx_write: fix mono streams

The old code had a hardcoded channels count of two. Use the value from the
command line or the writer node group information instead.

18 years agoosx_write: decrypt format settings.
Andre Noll [Sun, 20 Aug 2006 13:49:36 +0000 (15:49 +0200)]
osx_write: decrypt format settings.

What a sick kind of programming that was. Change it to readable,
but equivalent, code.

18 years agomake osx_write work for any bitrate
Andre Noll [Sun, 20 Aug 2006 13:42:01 +0000 (15:42 +0200)]
make osx_write work for any bitrate

44100Hz was hardcoded which is sad. Use the information from the command line
or the writer node group if available.

Also add a channels count option for future use.

18 years agosimplify osx_write_post_select()
Andre Noll [Sun, 20 Aug 2006 13:24:33 +0000 (15:24 +0200)]
simplify osx_write_post_select()

we either use the full buffer or leave it untouched. So wn->written is always zero
or wn->loaded.

18 years agosimplify osx_write_pre_select()
Andre Noll [Sun, 13 Aug 2006 16:58:46 +0000 (18:58 +0200)]
simplify osx_write_pre_select()

18 years agoconfigure.ac: Require autoconf-2.60
Andre Noll [Sun, 13 Aug 2006 13:38:19 +0000 (15:38 +0200)]
configure.ac: Require autoconf-2.60

The datarootdir thing really needs this.

18 years agodon't abort instal for non-root users
Andre Noll [Sun, 13 Aug 2006 13:17:33 +0000 (15:17 +0200)]
don't abort instal for non-root users

It's not fatal if the audiod socket directory /var/paraslash
can not be created. Just ignore errors for that directory only.

18 years agoupdate NEWS
Andre Noll [Sun, 13 Aug 2006 12:15:58 +0000 (14:15 +0200)]
update NEWS

18 years agoconfigure.ac: Check also for gkrellm header
Andre Noll [Sun, 13 Aug 2006 12:11:24 +0000 (14:11 +0200)]
configure.ac: Check also for gkrellm header

and do not try to build para_krell if it gkrellm.h could not be found.

18 years agoconfigure: add command line options for libmad
Andre Noll [Sun, 13 Aug 2006 11:59:55 +0000 (13:59 +0200)]
configure: add command line options for libmad

like for libfaad: --enable-mad-libs and --enable-mad-headers

18 years agoosx_writer: swap bytes.
Andre Noll [Fri, 11 Aug 2006 15:40:03 +0000 (17:40 +0200)]
osx_writer: swap bytes.

This finally makes the damn thing work. Requires some more cleanups though.

18 years agoMerge /fml/ag-raetsch/home/maan/scm/paraslash/ into my-osx
Andre Noll [Fri, 11 Aug 2006 15:01:36 +0000 (17:01 +0200)]
Merge /fml/ag-raetsch/home/maan/scm/paraslash/ into my-osx

18 years agofix conflict
Andre Noll [Fri, 11 Aug 2006 15:01:29 +0000 (17:01 +0200)]
fix conflict

18 years agomake para_accept() more robust
Andre Noll [Thu, 3 Aug 2006 08:59:04 +0000 (10:59 +0200)]
make para_accept() more robust

by checking for EINTR and restarting the accept() system call if neccessary.

18 years agofix two trivial compile warnings on x86_64
Andre Noll [Thu, 27 Jul 2006 17:21:49 +0000 (19:21 +0200)]
fix two trivial compile warnings on x86_64

18 years agoconfigure.ac: do not check for malloc.h
Andre Noll [Wed, 19 Jul 2006 15:39:21 +0000 (17:39 +0200)]
configure.ac: do not check for malloc.h

The malloc function prototypes are contained in stdlib.h on MAC OS.

18 years agotypo
Andre [Fri, 14 Jul 2006 15:18:44 +0000 (17:18 +0200)]
typo

18 years agonew codename, reset version to git
Andre [Fri, 14 Jul 2006 14:42:21 +0000 (16:42 +0200)]
new codename, reset version to git

18 years agothe paraslash-0.2.13 release tarball
Andre [Fri, 14 Jul 2006 14:37:44 +0000 (16:37 +0200)]
the paraslash-0.2.13 release tarball

18 years agoparaslash 0.2.13 v0.2.13
Andre [Fri, 14 Jul 2006 14:36:15 +0000 (16:36 +0200)]
paraslash 0.2.13

18 years agothe osx writer has to wait for the next version..
Andre [Fri, 14 Jul 2006 14:11:24 +0000 (16:11 +0200)]
the osx writer has to wait for the next version..

18 years agoavoid gcc warning message
Andre [Fri, 14 Jul 2006 11:57:26 +0000 (13:57 +0200)]
avoid gcc warning message

afs.c:291: warning: declaration of `log' shadows a global declaration

18 years agogui: fix command abort
Andre [Thu, 13 Jul 2006 14:00:57 +0000 (16:00 +0200)]
gui: fix command abort

Always kill the the child process if user aborts.

18 years agoaudiod: introduce last_status_read, kill af_status
Andre [Thu, 13 Jul 2006 11:51:32 +0000 (13:51 +0200)]
audiod: introduce last_status_read, kill af_status

For additional robustness, let's remember the time we received the last
status message from para_server. This allows to close the connection
after 60 seconds as para_server sends at least one message per minute.

Kill af_status: We store all status items in
stat_task->stat_item_values[] anyway. No need to duplicate this
information.

18 years agotrivial format string fix in dccp_send
Andre [Thu, 13 Jul 2006 11:24:52 +0000 (13:24 +0200)]
trivial format string fix in dccp_send

18 years agoMerge branch 'master' into my-osx
maan [Thu, 13 Jul 2006 10:41:40 +0000 (12:41 +0200)]
Merge branch 'master' into my-osx

18 years agopara_decrypt_challenge(): write terminating 0 byte
Andre [Wed, 12 Jul 2006 17:39:31 +0000 (19:39 +0200)]
para_decrypt_challenge(): write terminating 0 byte

As we do a sscanf() on the buffer. Noted by valgrind.

18 years agoFix two fd leaks
Andre [Wed, 12 Jul 2006 15:16:08 +0000 (17:16 +0200)]
Fix two fd leaks

18 years agocom_stat: abort on server crashes
Andre [Tue, 11 Jul 2006 12:50:36 +0000 (14:50 +0200)]
com_stat: abort on server crashes

Currently, if para_server gets killed by SIGKILL, its status clients
happily move on and announce the most current stream. This causes
audiod to restart the receivers in an endless loop. It's better to
close the connection from within com_stat() if the parent pid equals
one (which indicates that para_server has crashed).

18 years agomysql_selector: improve com_mv()
Andre [Tue, 11 Jul 2006 10:37:14 +0000 (12:37 +0200)]
mysql_selector: improve com_mv()

Make it work in case  basename(src) == basename(dest)

18 years agodbadm: supress writing to stdout while curses is active
Andre [Sat, 8 Jul 2006 16:52:20 +0000 (18:52 +0200)]
dbadm: supress writing to stdout while curses is active

18 years agoSimpify client_post_select()
Andre [Sat, 8 Jul 2006 02:17:09 +0000 (04:17 +0200)]
Simpify client_post_select()

send_bin_buffer() can only return zero if passed a zero length arg
which is impossible at this point.

18 years agostdout.c: Brown paper bag fix
Andre [Sat, 8 Jul 2006 02:14:27 +0000 (04:14 +0200)]
stdout.c: Brown paper bag fix

18 years agodccp_send: Retry on EAGAIN
Andre [Fri, 7 Jul 2006 15:28:21 +0000 (17:28 +0200)]
dccp_send: Retry on EAGAIN

Not nice, but fixes oggvorbis over dccp.

18 years agowrite_ok(): Always reset the select timeout
Andre [Fri, 7 Jul 2006 13:36:55 +0000 (15:36 +0200)]
write_ok(): Always reset the select timeout

18 years agodccp_send: set IP_MULTICAST_LOOP for the ortp socket
Andre [Fri, 7 Jul 2006 13:35:31 +0000 (15:35 +0200)]
dccp_send: set IP_MULTICAST_LOOP for the ortp socket

This fixes sending to localhost.

18 years agoortp_recv: Set remote address
Andre [Fri, 7 Jul 2006 13:27:57 +0000 (15:27 +0200)]
ortp_recv: Set remote address

This avoids a ortp warning message

18 years agomysql selector: Always check return value of escape_str()
Andre [Tue, 4 Jul 2006 12:18:30 +0000 (14:18 +0200)]
mysql selector: Always check return value of escape_str()

18 years agoimprove and clean up audiod_status_dump()
Andre [Mon, 3 Jul 2006 01:33:47 +0000 (03:33 +0200)]
improve and clean up audiod_status_dump()

Currently, no status is printed if audiod is off. This is suboptimal
as the _audiod_ status items should be sent in any case. This patch also

- gets rid of some static variables in audiod_status_dump()
- improves readability of audiod_status_dump()
- moves dump_empty_status() from stat.c to audiod_command.c

18 years agoaudiod: always dump the audio status
Andre [Mon, 3 Jul 2006 00:30:12 +0000 (02:30 +0200)]
audiod: always dump the audio status

18 years agorecv.c: Fix receiver node eof handling
Andre [Sun, 2 Jul 2006 16:52:58 +0000 (18:52 +0200)]
recv.c: Fix receiver node eof handling

18 years agoTrivial SFont cleanup
Andre [Sun, 2 Jul 2006 16:48:52 +0000 (18:48 +0200)]
Trivial SFont cleanup

18 years agoMakefile.in: Fix definition of PKGDATADIR
Andre [Sun, 2 Jul 2006 15:26:47 +0000 (17:26 +0200)]
Makefile.in: Fix definition of PKGDATADIR

The thing is called datarootdir, rather than datadir.

18 years agosdl_gui.ggo: update stat command
Andre [Sun, 2 Jul 2006 15:25:37 +0000 (17:25 +0200)]
sdl_gui.ggo: update stat command

The -t option of para_audioc was removed some time ago, so do not
use it in the default stat_command.

18 years agoFix core dump on audiod pipe errors
Andre [Sun, 2 Jul 2006 15:24:10 +0000 (17:24 +0200)]
Fix core dump on audiod pipe errors

if (fd < 0)
close(fd);

is a really bad idea..

18 years agocompress filter: decrease default target signal level
Andre [Sun, 2 Jul 2006 14:44:29 +0000 (16:44 +0200)]
compress filter: decrease default target signal level

18 years agoclient: do not ignore startup log messages
Andre [Wed, 28 Jun 2006 17:38:42 +0000 (19:38 +0200)]
client: do not ignore startup log messages

If an error occurs before the private_client_data struct is initialized,
the error message is silently ignored. Fix it by always printing the
log message if the struct pointer is NULL.

18 years agofix some doxygen warnings
Andre [Wed, 28 Jun 2006 13:23:47 +0000 (15:23 +0200)]
fix some doxygen warnings

These were introduced by the addition of -Wshadow.

18 years agoget rid of -DVERSION
Andre [Wed, 28 Jun 2006 13:02:39 +0000 (15:02 +0200)]
get rid of -DVERSION

It's identical to PACKAGE_VERSION, so use PACKAGE_VERSION in the
C Code and get rid of the preprocessor define.

18 years agoconfigure.ac: Small cleanup
Andre [Wed, 28 Jun 2006 12:51:50 +0000 (14:51 +0200)]
configure.ac: Small cleanup

18 years agoupdate to autoconf-2.60
Andre [Wed, 28 Jun 2006 12:45:14 +0000 (14:45 +0200)]
update to autoconf-2.60

use "datarootdir" instead of hardcoding /usr/local/share.
This also avoids a warning from the new autoconf about not using
"datarootdir".

18 years agoDon't exit if there are no more empty slots
Andre [Sun, 25 Jun 2006 14:07:40 +0000 (16:07 +0200)]
Don't exit if there are no more empty slots

Though this is considered a serious error, it's not fatal. Just try
again one second later.

18 years agoaac: add "mp4" to suffixes for guess_audio_format()
Andre [Sun, 25 Jun 2006 14:06:27 +0000 (16:06 +0200)]
aac: add "mp4" to suffixes for guess_audio_format()

18 years agoMerge branch 'master' into my-osx
maan [Sat, 24 Jun 2006 22:34:47 +0000 (00:34 +0200)]
Merge branch 'master' into my-osx

18 years agogui: fix default stat command
Andre [Sat, 24 Jun 2006 17:31:05 +0000 (19:31 +0200)]
gui: fix default stat command

It used the "-t" option of para_audioc which was removed recently.

18 years agoadd -Wshadow to CPPFLAGS
Andre [Fri, 23 Jun 2006 13:08:37 +0000 (15:08 +0200)]
add -Wshadow to CPPFLAGS

18 years agofix gcc warnings on shadowed declarations
Andre [Fri, 23 Jun 2006 13:04:37 +0000 (15:04 +0200)]
fix gcc warnings on shadowed declarations

18 years agofade: wake time defaults to "8 hours from now"
Andre [Fri, 23 Jun 2006 08:29:29 +0000 (10:29 +0200)]
fade: wake time defaults to "8 hours from now"

For all those shiftmen

18 years agoaudiod: fix receiver restart delay
Andre [Thu, 22 Jun 2006 17:35:15 +0000 (19:35 +0200)]
audiod: fix receiver restart delay

The current code started a new receiver node for the current format
only if the receiver_node is NULL for each slot which streams
that format. Since that pointer is only set to NULL _after_ the
writer/filters are closed, audiod did not start the new receiver
early enough.

Fix is simple: Check also the eof field in struct receiver_node.
As we're at it, rename decoder_running() to receiver_running() and
move it straight above its single caller.

As a consequence of this change, the restart_barrier has to be set
already in rn_event_handler() as this is the place where rn->eof is
set to one.

18 years agoReformat fade.ggo
Andre [Thu, 22 Jun 2006 10:53:32 +0000 (12:53 +0200)]
Reformat fade.ggo