[MPlayer-cvslog] r25117 - trunk/stream/tvi_dshow.c

voroshil subversion at mplayerhq.hu
Tue Nov 20 11:01:14 CET 2007


Author: voroshil
Date: Tue Nov 20 11:01:14 2007
New Revision: 25117

Log:
Fix totally wrong (due to mess of brackets) structures size check.


Modified:
   trunk/stream/tvi_dshow.c

Modified: trunk/stream/tvi_dshow.c
==============================================================================
--- trunk/stream/tvi_dshow.c	(original)
+++ trunk/stream/tvi_dshow.c	Tue Nov 20 11:01:14 2007
@@ -2047,16 +2047,16 @@ static HRESULT get_available_formats_str
 	    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;
 



More information about the MPlayer-cvslog mailing list