# HG changeset patch # User voroshil # Date 1195552874 0 # Node ID 791f867d0124727bfe33abf3da0d918ed6179da0 # Parent 554bbb45a2f24e7431b2ed9eb87a6fdb25da61d4 Fix totally wrong (due to mess of brackets) structures size check. diff -r 554bbb45a2f2 -r 791f867d0124 stream/tvi_dshow.c --- 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;