Skip to content

Commit

Permalink
* fix rtsp server bug (#331)
Browse files Browse the repository at this point in the history
  • Loading branch information
lxowalle authored Apr 1, 2024
1 parent 7181180 commit 598f857
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion librtsp/test/rtsp-server-test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ static void rtsp_onerror(void* /*param*/, rtsp_server_t* rtsp, int code)
#if defined(RTSP_SERVER_SOCKET_TEST)
static int rtsp_send(void* ptr, const void* data, size_t bytes)
{
socket_t socket = *(socket_t*)ptr;
socket_t socket = (socket_t)(intptr_t)ptr;

// TODO: send multiple rtp packet once time
return bytes == socket_send(socket, data, bytes, 0) ? 0 : -1;
Expand Down

0 comments on commit 598f857

Please sign in to comment.