mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 07:58:51 +00:00
curltlssink: swap check
Lets check for NULL first, as that is the default anyway.
This commit is contained in:
parent
4c63326a7a
commit
2e51ba1219
1 changed files with 2 additions and 2 deletions
|
@ -247,8 +247,8 @@ gst_curl_tls_sink_set_options_unlocked (GstCurlBaseSink * bcsink)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* crypto engine */
|
/* crypto engine */
|
||||||
if ((g_strcmp0 (sink->crypto_engine, "auto") == 0) ||
|
if ((sink->crypto_engine == NULL) ||
|
||||||
(sink->crypto_engine == NULL)) {
|
(strcmp (sink->crypto_engine, "auto") == 0)) {
|
||||||
res = curl_easy_setopt (bcsink->curl, CURLOPT_SSLENGINE_DEFAULT, 1L);
|
res = curl_easy_setopt (bcsink->curl, CURLOPT_SSLENGINE_DEFAULT, 1L);
|
||||||
if (res != CURLE_OK) {
|
if (res != CURLE_OK) {
|
||||||
bcsink->error =
|
bcsink->error =
|
||||||
|
|
Loading…
Reference in a new issue