diff options
author | Underground78 <underground78@users.sourceforge.net> | 2012-05-30 00:13:32 +0400 |
---|---|---|
committer | Underground78 <underground78@users.sourceforge.net> | 2012-05-30 00:13:32 +0400 |
commit | 3d00a2e81e7a0b380394dca196eddcc4ae1acf9e (patch) | |
tree | c3a02fb78795c2823fa7ec8b34895d5c98c19c9c /src/filters/transform | |
parent | 15052a5cc8085f364a38ee896f817c939630d9ee (diff) |
[VSFilter] Fix the C4706 warnings.
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@4942 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/filters/transform')
-rw-r--r-- | src/filters/transform/VSFilter/plugins.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/filters/transform/VSFilter/plugins.cpp b/src/filters/transform/VSFilter/plugins.cpp index fac75ff3d..85440c8b6 100644 --- a/src/filters/transform/VSFilter/plugins.cpp +++ b/src/filters/transform/VSFilter/plugins.cpp @@ -623,12 +623,12 @@ namespace Plugin int vobsubInitProc(VDXFilterActivation* fa, const VDXFilterFunctions* ff)
{
- return !(*(CVirtualDubFilter**)fa->filter_data = DNew CVobSubVirtualDubFilter());
+ return ((*(CVirtualDubFilter**)fa->filter_data = DNew CVobSubVirtualDubFilter()) == NULL);
}
int textsubInitProc(VDXFilterActivation* fa, const VDXFilterFunctions* ff)
{
- return !(*(CVirtualDubFilter**)fa->filter_data = DNew CTextSubVirtualDubFilter());
+ return ((*(CVirtualDubFilter**)fa->filter_data = DNew CTextSubVirtualDubFilter()) == NULL);
}
void baseDeinitProc(VDXFilterActivation* fa, const VDXFilterFunctions* ff)
@@ -754,8 +754,8 @@ namespace Plugin extern "C" __declspec(dllexport) int __cdecl VirtualdubFilterModuleInit2(VDXFilterModule *fm, const VDXFilterFunctions *ff, int& vdfd_ver, int& vdfd_compat)
{
- if (!(fd_vobsub = ff->addFilter(fm, &filterDef_vobsub, sizeof(VDXFilterDefinition)))
- || !(fd_textsub = ff->addFilter(fm, &filterDef_textsub, sizeof(VDXFilterDefinition)))) {
+ if (((fd_vobsub = ff->addFilter(fm, &filterDef_vobsub, sizeof(VDXFilterDefinition))) == NULL)
+ || ((fd_textsub = ff->addFilter(fm, &filterDef_textsub, sizeof(VDXFilterDefinition))) == NULL)) {
return 1;
}
|