50 Commits

Author SHA1 Message Date
Cameron Gutman
5de8f4c98c Fix UDP thread terminations 2016-02-15 18:46:14 -05:00
Cameron Gutman
167d344e39 Add a shutdown function for UDP sockets 2016-02-15 17:45:29 -05:00
Cameron Gutman
67b70e9cbd Implement queue shutdown 2016-02-15 17:00:31 -05:00
Cameron Gutman
d7f40ec39b Begin work to remove use of thread cancellation for NaCl 2016-02-15 15:58:42 -05:00
Michelle Bergeron
35835898c3 Cleanup: standardize * by type name, not var name 2016-02-13 13:28:58 -06:00
Michelle Bergeron
c8bad4ed2f Major code cleanup: comment style & run CodeMaid 2016-02-13 13:01:24 -06:00
Cameron Gutman
dfdfe4f0f6 Fix inconsistent whitespace 2016-02-06 23:46:47 -05:00
Cameron Gutman
7500382c26 Make the audio receive buffer 6400 bytes. At 1200 bytes, audio on my Pi 2 was constantly hiccupping because there wasn't enough of a cushion to allow time for decoding to happen in many cases. 2015-08-12 00:19:07 -07:00
Cameron Gutman
c421740ded Merge pull request #10 from irtimmer/bufferSize
Reduce audio receive buffer size
2015-08-11 19:14:06 -07:00
Iwan Timmer
9338bcc1f9 Reduce audio receive buffer size 2015-08-11 20:40:49 +02:00
Iwan Timmer
812f356868 Add capability to combine video receive and decode thread 2015-08-11 20:12:02 +02:00
Cameron Gutman
b79ee8ca46 Use the IDR frame request packet on Gen 4 servers. This solves the issue of IDR frames breaking after 0xFFFFF frames (4.85 hours at 60 FPS) 2015-08-04 23:43:10 -07:00
Cameron Gutman
a41c064cab Fix for the fix :/ 2015-07-31 00:14:22 -07:00
Cameron Gutman
f95f152439 Fix a bug that could cause the cleanup() callback to be erroneously invoked without a prior call to setup() or init() 2015-07-31 00:05:22 -07:00
Cameron Gutman
a5f59d206e Improve debugging and error codes 2015-06-24 22:52:26 -07:00
Cameron Gutman
c4d19edb4c Update to API 1.1 2015-06-17 23:21:58 -07:00
Cameron Gutman
da54ebf11f Fix remaining RTP queue bugs 2015-05-28 09:23:28 -05:00
Cameron Gutman
0b6727e92d Fix some RTP queue bugs 2015-05-28 09:06:51 -05:00
Cameron Gutman
956d6bb217 Add an RTP reordering queue to handle out of order packets 2015-05-28 08:32:51 -05:00
Cameron Gutman
e50df23a0a Don't hardcode 60 FPS 2015-05-28 08:12:59 -05:00
Cameron Gutman
601dd55d7c Save an allocation per video frame, audio packet, and input event by embedding an LBQ entry inside the linked data structure 2015-05-28 06:06:40 -05:00
Cameron Gutman
0fa1a02e0a Add backwards compatibility for GFE 2.1.x 2015-02-01 20:16:08 -05:00
Cameron Gutman
41d823923b Update for GFE 2.2.2+ 2015-01-22 16:55:08 -05:00
Cameron Gutman
ee3369ff9b Add capability for the video decoder to request an IDR frame 2015-01-09 17:34:26 -05:00
Cameron Gutman
d855742379 Reorder video stream initialization to prevent a ICMP port unreachable message that could teardown our NAT hole 2015-01-09 00:22:29 -05:00
Cameron Gutman
4afa97d954 Send PING every half second 2015-01-09 00:02:44 -05:00
Cameron Gutman
bf978223d8 Start the video decoder before reading the first frame to give it time to warm up 2014-11-11 19:00:32 -08:00
Michelle Bergeron
d9f55e9c8f Better commenting on methods 2014-10-23 01:16:35 -04:00
Cameron Gutman
0758de960a Clean up a bunch of warnings when building with Xcode 6.1 2014-10-18 11:32:29 -04:00
Cameron Gutman
841e3d9f22 Don't bind to a specific port anymore 2014-10-12 12:04:32 -07:00
Cameron Gutman
e438445219 Fix missing status checks 2014-08-24 11:43:52 -07:00
Cameron Gutman
806f5f184a Update video code for GFE 2.1.1 2014-08-17 20:57:30 -07:00
Cameron Gutman
18405f576d Fix a race between the start callback and the first frame's data 2014-06-29 21:07:07 -07:00
Cameron Gutman
7f590a7601 Fix packet size allocation for video stream 2014-06-29 18:30:55 -07:00
Michelle Bergeron
f2af6c8bd9 Revert "Remove decoding thread like in Java common"
This reverts commit 50733f6d7af941fb0771b1e4ad77b85183261715.
2014-06-29 17:36:03 -07:00
Cameron Gutman
50733f6d7a Remove decoding thread like in Java common 2014-06-29 00:24:25 -07:00
Cameron Gutman
97710478de Remove the depacketizer thread 2014-06-29 00:06:54 -07:00
Cameron Gutman
8c8fcc7cbe Add support for handling alternate max packet sizes 2014-06-29 00:06:29 -07:00
Cameron Gutman
2493c04019 Merge branch 'master' of github.com:limelight-stream/limelight-common-c 2014-04-02 22:47:56 -04:00
Cameron Gutman
8dcf4372f4 Use a double-linked list for the linked blocking queue so insertions are done in O(1) time 2014-04-02 22:47:49 -04:00
Cameron Gutman
61909b373f Pass the correct socket error to connectionTerminated() 2014-03-29 21:55:05 -04:00
Cameron Gutman
c553b14da6 Remove Win32-specific error codes 2014-03-29 15:44:43 -04:00
Cameron Gutman
c7c929d751 Add connection listener callbacks (WIP) 2014-03-29 14:20:36 -04:00
Cameron Gutman
8ad3145638 Add missing callbacks to Stop and Release for A/V 2014-02-02 05:54:41 -05:00
Cameron Gutman
12a31f8442 Add static keyword to global variable declarations 2014-02-02 05:05:37 -05:00
Cameron Gutman
31cd93b11b Finally fix the stupid bug causing callbacks to crash. We were directly using a pointer to stack that is invalid after initialization. 2014-02-02 04:56:18 -05:00
Michelle Bergeron
da9433fb0a Remove extra spacing and fix indentation 2014-01-29 02:15:49 -05:00
Cameron Gutman
638787d3dd Fix misuse of sizeof on dynamic allocation 2014-01-20 22:05:14 -05:00
Cameron Gutman
00de922f34 Fix freeing of a stack allocation. Fix bad LC_ASSERT definition on non-Windows platforms 2014-01-20 21:55:48 -05:00
Cameron Gutman
9f0540e030 Rename *.cpp to *.c 2014-01-20 20:36:30 -05:00