changeset 3456:ebab4801241f

do not fault if Filter_Create failed
author alex
date Tue, 11 Dec 2001 14:48:42 +0000
parents 921a78c7b4aa
children ca39dc9f879b
files loader/dshow/DS_VideoDecoder.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/loader/dshow/DS_VideoDecoder.c	Tue Dec 11 09:23:57 2001 +0000
+++ b/loader/dshow/DS_VideoDecoder.c	Tue Dec 11 14:48:42 2001 +0000
@@ -143,6 +143,12 @@
 
 
 	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)
 	{