[vlc-commits] Win32: disable IPC in WinStoreApp mode
Jean-Baptiste Kempf
git at videolan.org
Tue Jan 22 13:45:20 CET 2013
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue Jan 22 11:28:51 2013 +0100| [081cc1e7bd04094cf6f02aac5b5e75db547c5b62] | committer: Jean-Baptiste Kempf
Win32: disable IPC in WinStoreApp mode
IPC and one instance depends on HWND and calls will fail.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=081cc1e7bd04094cf6f02aac5b5e75db547c5b62
---
src/win32/specific.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/win32/specific.c b/src/win32/specific.c
index 2ec409c..18e4db8 100644
--- a/src/win32/specific.c
+++ b/src/win32/specific.c
@@ -97,6 +97,7 @@ void system_Configure( libvlc_int_t *p_this, int i_argc, const char *const ppsz_
}
}
+#if !defined(WINAPI_FAMILY_APP)
if( var_InheritBool( p_this, "one-instance" )
|| ( var_InheritBool( p_this, "one-instance-when-started-from-file" )
&& var_InheritBool( p_this, "started-from-file" ) ) )
@@ -206,8 +207,10 @@ void system_Configure( libvlc_int_t *p_this, int i_argc, const char *const ppsz_
exit( 0 );
}
}
+#endif
}
+#if !defined(WINAPI_FAMILY_APP)
static unsigned __stdcall IPCHelperThread( void *data )
{
vlc_object_t *p_this = data;
@@ -313,12 +316,14 @@ LRESULT CALLBACK WMCOPYWNDPROC( HWND hwnd, UINT uMsg, WPARAM wParam,
return DefWindowProc( hwnd, uMsg, wParam, lParam );
}
+#endif
/**
* Cleans up after system_Init() and system_Configure().
*/
void system_End(void)
{
+#if !defined(WINAPI_FAMILY_APP)
HWND ipcwindow;
/* FIXME: thread-safety... */
@@ -331,6 +336,7 @@ void system_End(void)
vlc_object_release (p_helper);
p_helper = NULL;
}
+#endif
timeEndPeriod(5);
More information about the vlc-commits
mailing list