curltlssink: swap check

Lets check for NULL first, as that is the default anyway.
This commit is contained in:
Stefan Sauer 2014-09-24 21:07:20 +02:00
parent 4c63326a7a
commit 2e51ba1219

View file

@ -247,8 +247,8 @@ gst_curl_tls_sink_set_options_unlocked (GstCurlBaseSink * bcsink)
}
/* crypto engine */
if ((g_strcmp0 (sink->crypto_engine, "auto") == 0) ||
(sink->crypto_engine == NULL)) {
if ((sink->crypto_engine == NULL) ||
(strcmp (sink->crypto_engine, "auto") == 0)) {
res = curl_easy_setopt (bcsink->curl, CURLOPT_SSLENGINE_DEFAULT, 1L);
if (res != CURLE_OK) {
bcsink->error =