Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
937e3f2f
Commit
937e3f2f
authored
Dec 15, 2008
by
Olivier Aubert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
python bindings: workaround for the #2257 / #2266 VLC bug (linux only ATM)
parent
28dc3c55
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
bindings/python/vlc_module.c
bindings/python/vlc_module.c
+16
-0
No files found.
bindings/python/vlc_module.c
View file @
937e3f2f
...
...
@@ -22,6 +22,7 @@
*****************************************************************************/
#include "vlcglue.h"
#include <dlfcn.h>
/**************************************************************************
* VLC Module
...
...
@@ -47,6 +48,21 @@ initvlc( void )
{
PyObject
*
p_module
;
#ifdef WIN32
/*
FIXME: Win32 support is trickier than that (does not support dlopen).
Get code from src/modules/os.c to work on different OSes.
*/
#define LIBVLCCORE "libvlccore.dll"
#else
#define LIBVLCCORE "libvlccore.so"
#endif
/* Workaround for the 2257/2266 VLC bug. */
if
(
!
dlopen
(
LIBVLCCORE
,
RTLD_NOW
|
RTLD_GLOBAL
)
)
{
fprintf
(
stderr
,
"Error when loading libvlccore:
\n
%s
\n
Trying to continue anyway.
\n
"
,
dlerror
()
);
}
/* vlcMediaPlayer_Type.tp_new = PyType_GenericNew; */
vlcMediaPlayer_Type
.
tp_alloc
=
PyType_GenericAlloc
;
/* vlcMedia_Type.tp_new = PyType_GenericNew; */
...
...
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