]> git.sesse.net Git - ffmpeg/commitdiff
dshow: indent
authorRamiro Polla <ramiro.polla@gmail.com>
Fri, 9 Sep 2011 03:09:42 +0000 (00:09 -0300)
committerStefano Sabatini <stefano.sabatini-lala@poste.it>
Mon, 12 Sep 2011 17:22:13 +0000 (19:22 +0200)
Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
libavdevice/dshow.c

index 2c298b2ddada89ee12d688dc24424a2552819c94..7035337c9db603e90bbcddccb50e7ac741bc94ff 100644 (file)
@@ -265,10 +265,10 @@ dshow_cycle_devices(AVFormatContext *avctx, ICreateDevEnum *devenum,
         buf = dup_wchar_to_utf8(var.bstrVal);
 
         if (pfilter) {
-        if (strcmp(device_name, buf))
-            goto fail1;
+            if (strcmp(device_name, buf))
+                goto fail1;
 
-        IMoniker_BindToObject(m, 0, 0, &IID_IBaseFilter, (void *) &device_filter);
+            IMoniker_BindToObject(m, 0, 0, &IID_IBaseFilter, (void *) &device_filter);
         } else {
             av_log(avctx, AV_LOG_INFO, " \"%s\"\n", buf);
         }
@@ -284,12 +284,12 @@ fail1:
     IEnumMoniker_Release(classenum);
 
     if (pfilter) {
-    if (!device_filter) {
-        av_log(avctx, AV_LOG_ERROR, "Could not find %s device.\n",
-               devtypename);
-        return AVERROR(EIO);
-    }
-    *pfilter = device_filter;
+        if (!device_filter) {
+            av_log(avctx, AV_LOG_ERROR, "Could not find %s device.\n",
+                   devtypename);
+            return AVERROR(EIO);
+        }
+        *pfilter = device_filter;
     }
 
     return 0;