Commit Graph
164 Commits
Author SHA1 Message Date
Mike Brady 6009d43abf Move the code to cehck for ignoring volume control to player.c 2017-04-07 18:39:09 +01:00
Mike Brady e4d5570eee Add rtp init and terminate, mirror all globals in the conn data structure 2017-03-16 13:19:38 +00:00
Mike Brady 728d3d4956 add conn to many procedure calls 2017-03-16 12:33:56 +00:00
Mike Brady e122fde2fb Add some debug messages around requests to stop and wathc out for double announcements 2017-03-16 08:47:26 +00:00
Mike Brady 0d22130081 Add specific metadat message when a FLUSH message is received. Also add diabnostic for fmtp parameters. 2017-03-15 14:49:02 +00:00
Mike Brady 10f3bc1eab Clean up creation of conversation thread -- no functional difference. 2017-03-14 10:38:48 +00:00
Mike Brady 2b6a9420a9 Add a memory barrier after initialising the rtsp_conn record. Stop a potential race condition. 2017-03-14 09:45:06 +00:00
Mike Brady f06e638d24 de-globalise flowcontrol ab_mutex,flush_mutex, first_packet_time_to_play, time_since_play_started 2017-03-09 17:22:48 +00:00
Mike Brady 7d672bcf56 Untested, probably not working 2017-03-07 22:42:23 +00:00
Mike Brady cf29625d2c Clang Format 2017-02-11 12:12:07 +00:00
Mike Brady 62aaf07478 Add support for mbed TLS and deprecate polarssl support 2017-01-30 08:21:12 +00:00
jneubrand 5c85e614c0 Merge fix-clip 2016-11-26 11:48:03 -08:00
Mike Brady 622549c7df If sync disabled on the alsa device, don't keep asking for buffer length. Also emit sender IP number as metadata. 2016-09-21 20:57:33 +01:00
Mike Brady 064bd293c5 Tidy up with a clang-format 2016-09-11 10:35:53 +01:00
Mike Brady 945483d9c3 Merge support of apple's ALAC decoder 2016-08-28 21:38:24 +01:00
Mike Brady 513b0e45e3 Update rtsp.c 2016-07-08 16:55:05 +01:00
Mike Brady a107a459d1 prevent run_this_before_play_begins or run_this_after_play_ends holding the RTSP port open 2016-06-27 21:05:37 +01:00
Mike Brady 1fe705cf5f Remove variable delay from non_blocking_write and include it whether metadata is enabled or not. Remove the INSTALL file and ignroe it in git. 2016-06-26 15:20:09 +01:00
Mike Brady a1b975106a Quieten some debug messages. 2016-05-26 08:28:06 +01:00
Mike Brady 8ae176933e Check non-blocking write returns correctly, sheesh. 2016-05-23 18:22:08 +01:00
Mike Brady 04eeaa837e Change password authentication to the same as an AirPort Express running 7.6.4. Only look for authentication once per session, to suit AllStream/Streambels 2016-05-20 15:41:19 +01:00
Mike Brady 51ad2cd385 Alter the wording of an error message a tiny bit. 2016-05-11 09:18:02 +00:00
Mike Brady 30386ae08c Add some information to message if the listening port (normally port 5000) is already in use. 2016-05-11 09:08:10 +00:00
Mike Brady 429b04f13c Reinstate end of conversation detection. 2016-05-07 16:30:11 +01:00
Mike Brady f01e86f5e9 Fix a diagnostic that actually caused the connection to be dropped occasinally. 2016-05-07 09:41:51 +01:00
Mike Brady 58f3758ad6 Fix warning about redefined function. 2016-05-07 08:01:46 +00:00
Mike Brady 1fd794af71 tidy up diagnostic messages 2016-05-02 09:45:44 +01:00
Mike Brady 5028cd1f9f Add information about local ip address so we can send back connections to the client from the same ip number it used to contact us 2016-05-01 22:37:57 +01:00
rkam c886b9a9e7 Init metadata_sock to -1 so it doesn't look like an fd. 2016-04-30 19:14:18 -07:00
mike fd56780575 Added option to broadcast metadata over UDP 2016-04-27 12:09:19 +01:00
Jonathan Patschke 1f67010c94 Mutex and Condition Variable Initialisation
Initialise the mutex and two condition variables inside pc_queue during pc_queue_init().
2016-04-04 07:57:52 -05:00
Mike Brady 91f75f2100 demote a debug message 2016-03-27 16:09:03 +00:00
Mike Brady f4d2631d1c Quieten some unnecessary debug messages. 2016-02-29 19:54:51 +00:00
Mike Brady 8f99cab8f9 Stop using the playing_mutex mutex in favour of the play_lock mutex. Get rid of all references to playing_mutex. 2016-02-08 22:04:23 +00:00
Mike Brady c8af40e9ca Experimentally, discard flush request that come before the first packet -- TuneBlade bug workaround 2016-02-05 09:25:21 +00:00
Mike Brady c84f3dd058 Allow at least 500 ms before starting a new rtsp conversation to allow previous one to die, if any. 2016-02-02 16:39:23 +00:00
Mike Brady 686082b34d Take a little more care of access to the alsa system; wait 100 ms after finishing with it to release data strucutres 2016-02-02 14:43:37 +00:00
Mike Brady 4b749c4066 Output volume metadata (pvol) even when ignoring the volume setting. AirPLay volume is output, but the actual db, min and max dB are set to zero, as they are meaningless in the context. 2016-01-27 11:06:33 +00:00
Mike Brady 45061e993e Turn on extra debugging 2016-01-24 13:36:16 +00:00
Mke Brady 28198c6984 Quieten some debug messages. 2016-01-23 17:58:03 +00:00
Mke Brady 9a9c9842fc Remove global signalling for stopping threads 2016-01-23 17:50:36 +00:00
Mike Brady 21fb39d22f Begin to clean up the 'stop' signalling among the threads -- try to remove as many globals as possible 2016-01-22 17:47:25 +00:00
Jörg Krause e5e4b3bb89 rtsp: ignore received picture if include_covert_art is set to no 2015-12-16 11:50:33 +01:00
Jörg Krause 1af53b769e rtsp: remove trailing whitespaces and fix indentation 2015-12-16 11:50:33 +01:00
Jörg Krause faa583398d Fix data allignment issue
Different processor targets may have different word alignment restrictions.
Typically, a two or four byte integer should start on a four-byte address in
order to be fetched correctly over a bus. An access of a misaligned memory
element may cause a bus error.

Therefore, we need to adjust the contents of a message by copying it into a new
location, before interpreting it.
2015-12-12 22:11:19 +01:00
Mike Brady f705d2367a Fix a stupind error what supressed the rtptime information regarding metadata and pictures 2015-11-24 12:19:12 +00:00
Mike Brady ced68dd045 Emit mdst and mden even if no rtptime is available. Use pcst and pcen tags to distinguish between metadata and picture tags 2015-10-25 13:50:23 +00:00
Mke Brady 07c3993096 Turn off some debug messages 2015-10-21 12:32:59 +01:00
Mke Brady 90f8ccd0c5 Add rtptime info to mdst and mden tokens and emit those tags also around PICT metadata. 2015-10-21 11:58:38 +01:00
Mike Brady 1ebcb80842 Bring all the updates to 2.4.2 2015-10-17 12:14:46 +01:00