Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
9b58a461
Commit
9b58a461
authored
Oct 01, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Win32: use CoInitializeEx() instead of CoInitialize()
That is recommended by MSDN. Also, do not use 0 for NULL.
parent
32bfb8dc
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
6 additions
and
8 deletions
+6
-8
modules/access/dshow/dshow.cpp
modules/access/dshow/dshow.cpp
+1
-1
modules/access/dtv/bdagraph.cpp
modules/access/dtv/bdagraph.cpp
+1
-3
modules/codec/dmo/dmo.c
modules/codec/dmo/dmo.c
+1
-1
modules/gui/qt4/components/simple_preferences.cpp
modules/gui/qt4/components/simple_preferences.cpp
+1
-1
modules/gui/qt4/main_interface_win32.cpp
modules/gui/qt4/main_interface_win32.cpp
+1
-1
modules/video_output/msw/common.c
modules/video_output/msw/common.c
+1
-1
No files found.
modules/access/dshow/dshow.cpp
View file @
9b58a461
...
...
@@ -409,7 +409,7 @@ static int CommonOpen( vlc_object_t *p_this, access_sys_t *p_sys,
bool
b_use_video
=
true
;
/* Initialize OLE/COM */
CoInitialize
(
0
);
CoInitialize
Ex
(
NULL
,
COINIT_APARTMENTTHREADED
);
var_Create
(
p_this
,
CFG_PREFIX
"config"
,
VLC_VAR_BOOL
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_this
,
CFG_PREFIX
"tuner"
,
VLC_VAR_BOOL
|
VLC_VAR_DOINHERIT
);
...
...
modules/access/dtv/bdagraph.cpp
View file @
9b58a461
...
...
@@ -369,9 +369,7 @@ BDAGraph::BDAGraph( vlc_object_t *p_this ):
p_scanning_tuner
=
NULL
;
p_grabber
=
NULL
;
/* Initialize COM - MS says to use CoInitializeEx in preference to
* CoInitialize */
CoInitializeEx
(
0
,
COINIT_APARTMENTTHREADED
);
CoInitializeEx
(
NULL
,
COINIT_APARTMENTTHREADED
);
}
/*****************************************************************************
...
...
modules/codec/dmo/dmo.c
View file @
9b58a461
...
...
@@ -379,7 +379,7 @@ static int DecOpen( decoder_t *p_dec )
ldt_fs_t
*
ldt_fs
=
Setup_LDT_Keeper
();
#else
/* Initialize OLE/COM */
CoInitialize
(
0
);
CoInitialize
Ex
(
NULL
,
COINIT_APARTMENTTHREADED
);
#endif
/* LOADER */
if
(
LoadDMO
(
VLC_OBJECT
(
p_dec
),
&
hmsdmo_dll
,
&
p_dmo
,
&
p_dec
->
fmt_in
,
false
)
...
...
modules/gui/qt4/components/simple_preferences.cpp
View file @
9b58a461
...
...
@@ -935,7 +935,7 @@ bool SPrefsPanel::addType( const char * psz_ext, QTreeWidgetItem* current,
void
SPrefsPanel
::
assoDialog
()
{
IApplicationAssociationRegistrationUI
*
p_appassoc
;
CoInitialize
(
0
);
CoInitialize
Ex
(
NULL
,
COINIT_APARTMENTTHREADED
);
if
(
S_OK
==
CoCreateInstance
(
CLSID_ApplicationAssociationRegistrationUI
,
NULL
,
CLSCTX_INPROC_SERVER
,
...
...
modules/gui/qt4/main_interface_win32.cpp
View file @
9b58a461
...
...
@@ -79,7 +79,7 @@ void MainInterface::createTaskBarButtons()
FIXME:the play button's picture doesn't changed to pause when clicked
*/
CoInitialize
(
0
);
CoInitialize
Ex
(
NULL
,
COINIT_APARTMENTTHREADED
);
if
(
S_OK
==
CoCreateInstance
(
CLSID_TaskbarList
,
NULL
,
CLSCTX_INPROC_SERVER
,
...
...
modules/video_output/msw/common.c
View file @
9b58a461
...
...
@@ -274,7 +274,7 @@ static void CommonChangeThumbnailClip(vout_display_t *vd, bool show)
if
(
!
GetVersionEx
(
&
winVer
)
||
winVer
.
dwMajorVersion
<=
5
)
return
;
CoInitialize
(
0
);
CoInitialize
Ex
(
NULL
,
COINIT_APARTMENTTHREADED
);
void
*
ptr
;
if
(
S_OK
==
CoCreateInstance
(
&
CLSID_TaskbarList
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment