changeset 25089:791f867d0124

Fix totally wrong (due to mess of brackets) structures size check.
author voroshil
date Tue, 20 Nov 2007 10:01:14 +0000
parents 554bbb45a2f2
children 7f044afbbb43
files stream/tvi_dshow.c
diffstat 1 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/stream/tvi_dshow.c	Tue Nov 20 09:02:43 2007 +0000
+++ b/stream/tvi_dshow.c	Tue Nov 20 10:01:14 2007 +0000
@@ -2047,16 +2047,16 @@
 	    mp_msg(MSGT_TV, MSGL_DBG4,
 		   "tvi_dshow: Wrong video structure size for GetNumberOfCapabilities (get_available_formats_stream)\n");
 	    return E_FAIL;
-	} else if (chain->type == audio){
-	    if (size != sizeof(AUDIO_STREAM_CONFIG_CAPS)) {
-		mp_msg(MSGT_TV, MSGL_DBG4,
+	}
+    } else if (chain->type == audio){
+	if (size != sizeof(AUDIO_STREAM_CONFIG_CAPS)) {
+	    mp_msg(MSGT_TV, MSGL_DBG4,
 		       "tvi_dshow: Wrong audio structure size for GetNumberOfCapabilities (get_available_formats_stream)\n");
-		return E_FAIL;
-	    } else {
+	    return E_FAIL;
+	}
+    } else {
 		mp_msg(MSGT_TV, MSGL_ERR, MSGTR_TVI_DS_UnsupportedMediaType,"get_available_formats_stream");
 		return E_FAIL;
-	    }
-	}
     }
     done = 0;