FD- / RPiPlay

An open-source AirPlay mirroring server for the Raspberry Pi. Supports iOS 9 and up.
GNU General Public License v3.0
4.89k stars 354 forks source link

avoid ilclient_get_input_buffer failure #342

Open WireFisher opened 2 years ago

WireFisher commented 2 years ago

Function ilclient_get_input_buffer will return Null when the third parameter (block) is 0 and there is temporarily no buffer available in the free list. Calling ilclient_get_input_buffer with "block" turned-on should prevent the caller from getting Null pointer repeatedly. Thus, the program won't suffer the "Got NULL buffer" error.