curltlssink: swap check
authorStefan Sauer <ensonic@users.sf.net>
Wed, 24 Sep 2014 19:07:20 +0000 (21:07 +0200)
committerStefan Sauer <ensonic@users.sf.net>
Wed, 24 Sep 2014 20:25:55 +0000 (22:25 +0200)
Lets check for NULL first, as that is the default anyway.

ext/curl/gstcurltlssink.c

index b6de969..35c1c1c 100644 (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 =