summaryrefslogtreecommitdiff
path: root/str.c
diff options
context:
space:
mode:
authorAndre Noll <maan@tuebingen.mpg.de>2024-04-28 01:26:57 +0200
committerAndre Noll <maan@tuebingen.mpg.de>2024-04-28 01:26:57 +0200
commitffc8c4a28f52cfb0e617ec3c6f3958cd994e13b6 (patch)
tree354c4a24bc220c0fa35d1db1ea2d68d20e18aa29 /str.c
parent1b576a8fa111f2001350a18635583f020c3f07c4 (diff)
parent73e0fd24ed41db7882948ee4d7ff63119cf5a67d (diff)
Merge branch 'master' into nextnext
* master: Support local make files.
Diffstat (limited to 'str.c')
0 files changed, 0 insertions, 0 deletions
tr class='nohover-highlight'> The paraslash code should never request the name of an audio format with invalid id. Introduce the ARRAY_SIZE macro to get the proper upper bound for the number of supported audio formats. 2007-09-15ogg_afh.c: Store the bitrate in KHz rather than in Hz.Andre Noll The other audio format handlers also do it that way. 2007-09-15command.c: Fix om_help().Andre Noll It segfaulted due to a missing return statement. 2007-09-15command.c: Increase maximal command length.Andre Noll 4096 is really short if you want to pass lots of filenames. 2007-09-14More loglevel adjustments.Andre Noll 2007-09-14afs.cmd: Add documentation of com_afs_ls.Andre Noll 2007-09-14com_afs_ls(): Fix output width of duration.Andre Noll 2007-09-14loglevel adjustments.Andre Noll Adding many audio files was way to verbose.. 2007-09-14afs: com_add() fixes and improvements.Andre Noll - Simplify verify_path() - make com_add() accept paths that end with a slash. - add_one_audio_file() _always_ returns success. 2007-09-14rc4: Round up output buffer size.Andre Noll valgrind indicated that RC4() writes beyond the end of the output buffer which was was of the same size than the input buffer. Workaround this by rounding up the output buffer size to a multiple of 8. 2007-09-13aac_afh.c: Fix serious memory leak.Andre Noll Ooops. We forgot to close the AAC decoder handle... 2007-09-13Fix com_add segfault.Andre Noll We call free(obj.data) unconditionally on errors, but is is not set to NULL. Also, return always success in add_one_audio_file() in order to continue the loop. 2007-09-13ogg_afh.c: Fix a memory leak.Andre Noll In an non-ogg file is passed to the ogg audio format handler, such that the initial ogg_sync_pageout() fails, the old code leaked the memory which was allocated for the stream_in and the stream_out pointers. 2007-09-13com_add: Minor improvements.Andre Noll Continue if an audio file could not be added and print proper error message in case of errors. 2007-09-12aft.c: Fix com_add().Andre Noll callbacks shall return zero or negative, if no result is provided. So let com_ls_callback() return zero if no match was found, or if the audio file table does not contain any entries. Check for ret > 0 in com_add() instead of ret >= 0, i.e. don't use the result pointer if ret is zero. 2007-09-12afs.c: Fix com_init().Andre Noll It didn't use callbacks which worked before the paraslash merge only. 2007-09-12afs.c: Add log message, cast sizeof().Andre Noll In case the local socket could not be created, we really should tell the user that fact. The other change in this patch is casting sizeof() to unsigned long which shuts gcc up on both i386 and x86_64. 2007-09-12string.c: Use $HOME to get the home directory.Andre Noll This is actually simpler than using getpwuid(), and it shuts up a valgrind warning as well. 2007-09-12vss_init(): Use FOR_EACH_AUDIO_FORMAT() instead of open coding the loop.Andre Noll Fixes a segfault on startup in case not all three audio formats are supported. 2007-09-10Fix afs_shutdown().Andre Noll Unregister tasks as soon as we catch a terminating signal and call afs_shutdown() when sched() returns. 2007-09-10osl.c: Dereference pointer _after_ checking for NULL.Andre Noll 2007-09-10afs: Replace DATABASE_DIR by a runtime config option.Andre Noll Also, split afs_init() into two parts: The new open_afs_tables() that does what its name suggests and the remaining part that initializes the scheduler. 2007-09-10afs: Minor improvements and fixes.Andre Noll - Fix audio format handler output of ls -v. - add_one_audio_file(): Write log messages to the client fd instead of para_server's logfile. 2007-09-10Fix two typos in documentation.Andre Noll 2007-09-10Doxyfile: set EXTRACT_ALL to yes.Andre Noll Otherwise doxygen gives zillions of warnings. 2007-09-10Add a new style file.Andre Noll For v0.3 the outfit should at least change a bit ;) 2007-09-10afs com_add(): Recognize also audio formats different from mp3.Andre Noll This required adding two more callbacks: path_brother_callback() and hash_sister_callback(). These are called from add_one_audio_file() which runs from handler context and can thus not access the database directly. 2007-09-09Change the type of the argv argument of all commands.Andre Noll The new type, char * const * const argv is what the exec functions also take. This avoids some warnings. 2007-09-09Fix some format string warnings on x86_64.Andre Noll 2007-09-09Add documentation for com_add().Andre Noll 2007-09-09Makefile.in: Add afs_command_list.man to the list of server commands.Andre Noll 2007-09-09vss.c: Introduce get_audio_file_info().Andre Noll This is going to be used from within aft's com_add() which ATM only supports mp3. 2007-09-09afh.h: Kill unused SUPPORTED_AUDIO_FORMATS_ARRAY.Andre Noll 2007-09-09afs.c: Kill unused struct callback_data.Andre Noll