obs-outputs: Fix warnings WITH_RTMPS=OFF

Some unused variables were not marked unused when RTMPS was disabled.
master
Kurt Kartaltepe 2020-04-04 11:09:12 -07:00
parent dbb453d00b
commit 107c632220
1 changed files with 5 additions and 0 deletions

View File

@ -360,6 +360,8 @@ error:
mbedtls_x509_crt_free(chain); mbedtls_x509_crt_free(chain);
free(chain); free(chain);
r->RTMP_TLS_ctx->cacert = NULL; r->RTMP_TLS_ctx->cacert = NULL;
#else /* USE_MBEDTLS */
UNUSED_PARAMETER(r);
#endif /* USE_MBEDTLS */ #endif /* USE_MBEDTLS */
} }
@ -407,6 +409,7 @@ RTMP_TLS_Init(RTMP *r)
SSL_CTX_set_default_verify_paths(RTMP_TLS_ctx); SSL_CTX_set_default_verify_paths(RTMP_TLS_ctx);
#endif #endif
#else #else
UNUSED_PARAMETER(r);
#endif #endif
} }
@ -429,6 +432,8 @@ RTMP_TLS_Free(RTMP *r) {
// NO mbedtls_net_free() BECAUSE WE SET IT UP BY HAND! // NO mbedtls_net_free() BECAUSE WE SET IT UP BY HAND!
free(r->RTMP_TLS_ctx); free(r->RTMP_TLS_ctx);
r->RTMP_TLS_ctx = NULL; r->RTMP_TLS_ctx = NULL;
#else
UNUSED_PARAMETER(r);
#endif #endif
} }