mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-20 13:08:50 +02:00
obs-outputs: Fix clang warnings about unreachable code
This commit is contained in:
parent
0235ac2fb2
commit
fffbf6c801
@ -1031,13 +1031,12 @@ static int init_send(struct rtmp_stream *stream)
|
||||
stream->write_buf_size = ideal_buffer_size;
|
||||
stream->write_buf = bmalloc(ideal_buffer_size);
|
||||
|
||||
#ifdef _WIN32
|
||||
ret = pthread_create(&stream->socket_thread, NULL,
|
||||
socket_thread_windows, stream);
|
||||
#else
|
||||
#ifndef _WIN32
|
||||
warn("New socket loop not supported on this platform");
|
||||
return OBS_OUTPUT_ERROR;
|
||||
#endif
|
||||
#else
|
||||
ret = pthread_create(&stream->socket_thread, NULL,
|
||||
socket_thread_windows, stream);
|
||||
|
||||
if (ret != 0) {
|
||||
RTMP_Close(&stream->rtmp);
|
||||
@ -1049,6 +1048,7 @@ static int init_send(struct rtmp_stream *stream)
|
||||
stream->rtmp.m_bCustomSend = true;
|
||||
stream->rtmp.m_customSendFunc = socket_queue_data;
|
||||
stream->rtmp.m_customSendParam = stream;
|
||||
#endif
|
||||
}
|
||||
|
||||
os_atomic_set_bool(&stream->active, true);
|
||||
|
Loading…
Reference in New Issue
Block a user