[vlc-commits] dshow: CapturePin: Default initialize AM_MEDIA_TYPE
Hugo Beauzée-Luyssen
git at videolan.org
Tue Feb 14 15:30:38 CET 2017
vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Tue Feb 14 14:10:35 2017 +0100| [e6b343dd68854fc9de383e8fb44c716221f8d403] | committer: Hugo Beauzée-Luyssen
dshow: CapturePin: Default initialize AM_MEDIA_TYPE
CID #1402768
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e6b343dd68854fc9de383e8fb44c716221f8d403
---
modules/access/dshow/filter.cpp | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/modules/access/dshow/filter.cpp b/modules/access/dshow/filter.cpp
index 64d65e2..8205afc 100644
--- a/modules/access/dshow/filter.cpp
+++ b/modules/access/dshow/filter.cpp
@@ -210,13 +210,8 @@ CapturePin::CapturePin( vlc_object_t *_p_input, access_sys_t *_p_sys,
AM_MEDIA_TYPE *mt, size_t mt_count )
: p_input( _p_input ), p_sys( _p_sys ), p_filter( _p_filter ),
p_connected_pin( NULL ), media_types(mt), media_type_count(mt_count),
- i_ref( 0 )
+ cx_media_type(), i_ref( 0 )
{
- cx_media_type.majortype = mt[0].majortype;
- cx_media_type.subtype = GUID_NULL;
- cx_media_type.pbFormat = NULL;
- cx_media_type.cbFormat = 0;
- cx_media_type.pUnk = NULL;
}
CapturePin::~CapturePin()
More information about the vlc-commits
mailing list