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
0bbd5859
Commit
0bbd5859
authored
Oct 04, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4: use MTA apartment for COM (fixes #6880)
parent
6a258c95
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
modules/access/dshow/dshow.cpp
modules/access/dshow/dshow.cpp
+4
-2
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
No files found.
modules/access/dshow/dshow.cpp
View file @
0bbd5859
...
...
@@ -2015,7 +2015,8 @@ static int FindDevices( vlc_object_t *p_this, const char *psz_name,
{
/* Find list of devices */
list
<
string
>
list_devices
;
if
(
SUCCEEDED
(
CoInitializeEx
(
NULL
,
COINIT_APARTMENTTHREADED
))
)
if
(
SUCCEEDED
(
CoInitializeEx
(
NULL
,
COINIT_MULTITTHREADED
))
||
SUCCEEDED
(
CoInitializeEx
(
NULL
,
COINIT_APARTMENTTHREADED
))
)
{
bool
b_audio
=
!
strcmp
(
psz_name
,
CFG_PREFIX
"adev"
);
...
...
@@ -2055,7 +2056,8 @@ static int ConfigDevicesCallback( vlc_object_t *p_this, char const *psz_name,
char
*
psz_device
=
NULL
;
int
i_ret
=
VLC_SUCCESS
;
if
(
FAILED
(
CoInitializeEx
(
NULL
,
COINIT_APARTMENTTHREADED
))
)
if
(
FAILED
(
CoInitializeEx
(
NULL
,
COINIT_MULTITTHREADED
))
&&
FAILED
(
CoInitializeEx
(
NULL
,
COINIT_APARTMENTTHREADED
))
)
return
VLC_EGENERIC
;
if
(
!
EMPTY_STR
(
newval
.
psz_string
)
)
...
...
modules/gui/qt4/components/simple_preferences.cpp
View file @
0bbd5859
...
...
@@ -935,7 +935,7 @@ bool SPrefsPanel::addType( const char * psz_ext, QTreeWidgetItem* current,
void
SPrefsPanel
::
assoDialog
()
{
IApplicationAssociationRegistrationUI
*
p_appassoc
;
CoInitializeEx
(
NULL
,
COINIT_
APARTMEN
TTHREADED
);
CoInitializeEx
(
NULL
,
COINIT_
MULTI
TTHREADED
);
if
(
S_OK
==
CoCreateInstance
(
CLSID_ApplicationAssociationRegistrationUI
,
NULL
,
CLSCTX_INPROC_SERVER
,
...
...
modules/gui/qt4/main_interface_win32.cpp
View file @
0bbd5859
...
...
@@ -79,7 +79,7 @@ void MainInterface::createTaskBarButtons()
FIXME:the play button's picture doesn't changed to pause when clicked
*/
CoInitializeEx
(
NULL
,
COINIT_
APARTMENT
THREADED
);
CoInitializeEx
(
NULL
,
COINIT_
MULTI
THREADED
);
if
(
S_OK
==
CoCreateInstance
(
CLSID_TaskbarList
,
NULL
,
CLSCTX_INPROC_SERVER
,
...
...
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