summaryrefslogtreecommitdiffstats
path: root/stream
diff options
context:
space:
mode:
authorvoroshil <voroshil@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-11-20 10:01:14 +0000
committervoroshil <voroshil@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-11-20 10:01:14 +0000
commit298dd31e32e74553e68886b7b2144a190a0b6608 (patch)
tree0caded543f7dcd4d127564a17269fafee6f9aa3d /stream
parenta9aa43a249d7fe3068c6a1fe5c9dc5035fbcaf4e (diff)
downloadmpv-298dd31e32e74553e68886b7b2144a190a0b6608.tar.bz2
mpv-298dd31e32e74553e68886b7b2144a190a0b6608.tar.xz
Fix totally wrong (due to mess of brackets) structures size check.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25117 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream')
-rw-r--r--stream/tvi_dshow.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/stream/tvi_dshow.c b/stream/tvi_dshow.c
index acd23039cf..e32015f76b 100644
--- a/stream/tvi_dshow.c
+++ b/stream/tvi_dshow.c
@@ -2047,16 +2047,16 @@ static HRESULT get_available_formats_stream(chain_t *chain)
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;