]> git.tue.mpg.de Git - paraslash.git/log
paraslash.git
17 years agoNEWS: update
Andre [Fri, 22 Dec 2006 00:26:55 +0000 (01:26 +0100)]
NEWS: update

17 years agofix a bug in filter_chain()
Andre [Fri, 22 Dec 2006 00:08:38 +0000 (01:08 +0100)]
fix a bug in filter_chain()

Under certain circumstances para_filter failed to write out the last
chunk of audio data due to a bogus eof check triggering. The fix
consists in simply killing that check.

17 years agomp3dec.c: cosmetics
Andre [Sat, 16 Dec 2006 16:34:05 +0000 (17:34 +0100)]
mp3dec.c: cosmetics

17 years agogui.c: clarify wording of reload message
Andre [Thu, 16 Nov 2006 19:08:49 +0000 (20:08 +0100)]
gui.c: clarify wording of reload message

17 years agoNEWS: mention new features
Andre [Thu, 16 Nov 2006 19:08:13 +0000 (20:08 +0100)]
NEWS: mention new features

17 years agoMerge branch 'in_mem_user_list'
Andre [Thu, 16 Nov 2006 18:43:29 +0000 (19:43 +0100)]
Merge branch 'in_mem_user_list'

18 years agofix handling of corrupt mp3 files
Andre [Sat, 4 Nov 2006 13:59:40 +0000 (14:59 +0100)]
fix handling of corrupt mp3 files

When a recoverable error occured we always returned FRAME_HEADER_SIZE
in mp3dec, which is clearly wrong if the error did not happen in the
first frame.

Fix is not to distinguish between recoverable and unrecoverable
errors which even simplifies the code a bit.

18 years agowrite.c: Make some variables static
Andre [Wed, 1 Nov 2006 14:16:31 +0000 (15:16 +0100)]
write.c: Make some variables static

18 years agoreload user list on SIGHUP
Andre [Wed, 1 Nov 2006 14:07:00 +0000 (15:07 +0100)]
reload user list on SIGHUP

18 years agoAdd documentation of para_write
Andre [Wed, 1 Nov 2006 13:48:06 +0000 (14:48 +0100)]
Add documentation of para_write

18 years agorename get_user() to lookup_user()
Andre [Wed, 1 Nov 2006 13:20:15 +0000 (14:20 +0100)]
rename get_user() to lookup_user()

18 years agomove user handling code into seperate functions
Andre [Wed, 1 Nov 2006 13:09:17 +0000 (14:09 +0100)]
move user handling code into seperate functions

They are called user_list.c and user_list.h

18 years agomove LOAD_PUBLIC_KEY and LOAD_PRIVATE_KEY to crypt.h
Andre [Wed, 1 Nov 2006 12:19:18 +0000 (13:19 +0100)]
move LOAD_PUBLIC_KEY and LOAD_PRIVATE_KEY to crypt.h

and use LOAD_PUBLIC_KEY instead of hardcoding its value in server.c.
Also, add a GPL header to crypt.h

18 years agoRemove underscores from _get_user(), struct _user and _user_list
Andre [Wed, 1 Nov 2006 12:14:05 +0000 (13:14 +0100)]
Remove underscores from _get_user(), struct _user and _user_list

As the variants without underscore were removed in the previous patch.
The exception is user_list which contains the name of the config file
containing all users and which is still needed. So rename it to user_list_file.

18 years agokill get_user() and struct user
Andre [Wed, 1 Nov 2006 12:05:54 +0000 (13:05 +0100)]
kill get_user() and struct user

It is unused as it was replaced by the in-memory variants _get_user()
and struct _user.

18 years agoswitch to the in-memory user list
Andre [Wed, 1 Nov 2006 12:00:58 +0000 (13:00 +0100)]
switch to the in-memory user list

In order to do so, the crypt functions had to be changed so that they
take an rsa key instead of the filename of that key. Also, make _get_user()
return -E_BAD_USER if the user was not found and move the corresponding error
codes from COMMAND_ERRORS to SERVER_ERRORS in error.h.

18 years agopreparations for user list in memory
Andre [Wed, 1 Nov 2006 11:21:30 +0000 (12:21 +0100)]
preparations for user list in memory

The idea is to not lookup the user file/rsa key for
each connection/each buffer to be sent, but to load
it only once on startup.

This patch

* renames list_add to para_list_add, as list_add is
an exported symbol of mysql.h

* makes get_key of crypt.c non-static and renames it to get_rsa_key.
It is used from server.c to load the rsa key.

* introduces struct _user, the new struct to hold user info. It is
meant to replace the current struct user soon.

* Introdoces init_user_list(), populate_user_list() and _get_user()
in server.c. The latter is meant to replace get_user() of command.c

The new functions are not used yet.

18 years agonew codename, reset version to git
Andre Noll [Sun, 15 Oct 2006 16:57:38 +0000 (18:57 +0200)]
new codename, reset version to git

18 years agothe paraslash-0.2.14 release tarball
Andre Noll [Sun, 15 Oct 2006 16:55:09 +0000 (18:55 +0200)]
the paraslash-0.2.14 release tarball

18 years agoparaslash 0.2.14 v0.2.14
Andre Noll [Sun, 15 Oct 2006 16:52:23 +0000 (18:52 +0200)]
paraslash 0.2.14

18 years agocosmetics
Andre [Tue, 10 Oct 2006 17:54:47 +0000 (19:54 +0200)]
cosmetics

18 years agoMerge ../paraslash.fml/paraslash
Andre [Tue, 10 Oct 2006 17:53:31 +0000 (19:53 +0200)]
Merge ../paraslash.fml/paraslash

18 years agotypo
Andre Noll [Tue, 10 Oct 2006 17:00:04 +0000 (19:00 +0200)]
typo

18 years agoMakefile.in: kill target web/sync/demo-script
Andre Noll [Tue, 10 Oct 2006 16:54:15 +0000 (18:54 +0200)]
Makefile.in: kill target web/sync/demo-script

18 years agonuke the demo-script
Andre Noll [Tue, 10 Oct 2006 16:35:46 +0000 (18:35 +0200)]
nuke the demo-script

It was broken at least since paraslash-0.2.13. Update the live demo
page accordingly.

18 years agoosx_write.c: Add doxygen description for struct private_osx_write_data
Andre Noll [Mon, 9 Oct 2006 12:46:13 +0000 (14:46 +0200)]
osx_write.c: Add doxygen description for struct private_osx_write_data

18 years agoosx_write.c: Rename 'output' to 'audio_unit', add documentation
Andre Noll [Mon, 9 Oct 2006 12:19:36 +0000 (14:19 +0200)]
osx_write.c: Rename 'output' to 'audio_unit', add documentation

Add missing docu of struct private_osx_write_data.

18 years agoosx_write.c: Kill an unused variable.
Andre Noll [Mon, 9 Oct 2006 12:03:34 +0000 (14:03 +0200)]
osx_write.c: Kill an unused variable.

18 years agofix two bugs concerning blocking fds
Andre Noll [Sun, 8 Oct 2006 21:31:05 +0000 (23:31 +0200)]
fix two bugs concerning blocking fds

para_server's command socked and the socket of the http_sender
were blocking file descriptors. So make them non-blocking.

18 years agoMerge /home/maan/scm/paraslash.fml/paraslash
Andre [Tue, 3 Oct 2006 12:44:30 +0000 (14:44 +0200)]
Merge /home/maan/scm/paraslash.fml/paraslash

18 years agofade: add missing <cr> in log message
Andre [Tue, 3 Oct 2006 12:44:02 +0000 (14:44 +0200)]
fade: add missing <cr> in log message

18 years agoadd --with-oggvorbis-libs and --with-oggvorbis-headers options for configure
Andre Noll [Sun, 1 Oct 2006 20:11:25 +0000 (22:11 +0200)]
add --with-oggvorbis-libs and --with-oggvorbis-headers options for configure

Also, reset the LIBS variable after each test.

18 years agoMerge /home/maan/scm/paraslash.fml/paraslash
Andre [Sat, 30 Sep 2006 19:44:23 +0000 (21:44 +0200)]
Merge /home/maan/scm/paraslash.fml/paraslash

18 years agopara_server: New command line option: --autoplay_delay
Andre [Sat, 30 Sep 2006 19:28:09 +0000 (21:28 +0200)]
para_server: New command line option: --autoplay_delay

Useful together with para_audiod's new --clock_diff_count option.

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 commit /fml/ag-raetsch/home/maan/tmp/paraslash_meins/paraslash/ of HEAD
Andre Noll [Fri, 29 Sep 2006 15:13:09 +0000 (17:13 +0200)]
Merge commit /fml/ag-raetsch/home/maan/tmp/paraslash_meins/paraslash/ of HEAD

18 years agoindex.in.html: fix typo (2006 instead of 2007)
Andre Noll [Fri, 29 Sep 2006 15:03:16 +0000 (17:03 +0200)]
index.in.html: fix typo (2006 instead of 2007)

noted by Sebastian Stark.

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.