diff options
author | 2001-12-11 14:48:42 +0000 | |
---|---|---|
committer | 2001-12-11 14:48:42 +0000 | |
commit | 26fc72a94eed028fe90278ac00023d8754e00e05 (patch) | |
tree | d109eb464735e2782b01ee55db695ab617c21406 /loader/dshow/DS_VideoDecoder.c | |
parent | f7527242b12a063b8a17bd5e0df6fc6e382a5ea2 (diff) |
do not fault if Filter_Create failed
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3457 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'loader/dshow/DS_VideoDecoder.c')
-rw-r--r-- | loader/dshow/DS_VideoDecoder.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/loader/dshow/DS_VideoDecoder.c b/loader/dshow/DS_VideoDecoder.c index 2316e4736e..75c005b5c4 100644 --- a/loader/dshow/DS_VideoDecoder.c +++ b/loader/dshow/DS_VideoDecoder.c @@ -143,6 +143,12 @@ DS_VideoDecoder * DS_VideoDecoder_Open(char* dllname, GUID* guid, BITMAPINFOHEAD this->m_pDS_Filter = DS_FilterCreate(dllname, guid, &this->m_sOurType, &this->m_sDestType); + + if (!this->m_pDS_Filter) + { + printf("Failed to create DirectShow filter\n"); + return 0; + } if (!flip) { |