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
b2f6c56e
Commit
b2f6c56e
authored
Dec 09, 2007
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix #1382
parent
2d9c9ee6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
4 deletions
+20
-4
configure.ac
configure.ac
+5
-2
modules/gui/qt4/qt4.cpp
modules/gui/qt4/qt4.cpp
+15
-2
No files found.
configure.ac
View file @
b2f6c56e
...
@@ -5187,6 +5187,9 @@ AS_IF([test "${enable_qt4}" != "no" &&
...
@@ -5187,6 +5187,9 @@ AS_IF([test "${enable_qt4}" != "no" &&
[ VLC_ADD_PLUGINS([qt4])
[ VLC_ADD_PLUGINS([qt4])
ALIASES="${ALIASES} qvlc"
ALIASES="${ALIASES} qvlc"
enableqt4=true
enableqt4=true
if test "${SYS}" != "mingw32" -a "${SYS}" != "mingwce" -a "${SYS}" != "cygwin"; then
AC_CHECK_HEADERS([X11/Xlib.h],[],[AC_MSG_ERROR([You need X11 headers])])
fi
VLC_ADD_LIBS([qt4],[$QT4_LIBS])
VLC_ADD_LIBS([qt4],[$QT4_LIBS])
VLC_ADD_CXXFLAGS([qt4],[$QT4_CFLAGS -DQT4LOCALEDIR=\\\\\\\"$($PKG_CONFIG --variable=prefix QtCore)/share/qt4/translations/\\\\\\\"])
VLC_ADD_CXXFLAGS([qt4],[$QT4_CFLAGS -DQT4LOCALEDIR=\\\\\\\"$($PKG_CONFIG --variable=prefix QtCore)/share/qt4/translations/\\\\\\\"])
AC_PATH_PROGS(MOC, [moc-qt4 moc], moc,`$PKG_CONFIG --variable=exec_prefix QtCore`/bin)
AC_PATH_PROGS(MOC, [moc-qt4 moc], moc,`$PKG_CONFIG --variable=exec_prefix QtCore`/bin)
...
@@ -5194,9 +5197,9 @@ AS_IF([test "${enable_qt4}" != "no" &&
...
@@ -5194,9 +5197,9 @@ AS_IF([test "${enable_qt4}" != "no" &&
AC_PATH_PROGS(UIC, [uic-qt4 uic], uic,`$PKG_CONFIG --variable=exec_prefix QtCore`/bin)
AC_PATH_PROGS(UIC, [uic-qt4 uic], uic,`$PKG_CONFIG --variable=exec_prefix QtCore`/bin)
],
],
AS_IF([test "${enable_qt4}" = "yes"],[
AS_IF([test "${enable_qt4}" = "yes"],[
AC_MSG_ERROR(QT4 library not found)
AC_MSG_ERROR(QT4 library not found)
],[
],[
AC_MSG_WARN(QT4 library not found)
AC_MSG_WARN(QT4 library not found)
])
])
)
)
])
])
...
...
modules/gui/qt4/qt4.cpp
View file @
b2f6c56e
...
@@ -32,6 +32,10 @@
...
@@ -32,6 +32,10 @@
#include "input_manager.hpp"
#include "input_manager.hpp"
#include "main_interface.hpp"
#include "main_interface.hpp"
#ifdef HAVE_X11_XLIB_H
#include <X11/Xlib.h>
#endif
#include "../../../share/vlc32x32.xpm"
#include "../../../share/vlc32x32.xpm"
/*****************************************************************************
/*****************************************************************************
...
@@ -176,13 +180,22 @@ static int Open( vlc_object_t *p_this )
...
@@ -176,13 +180,22 @@ static int Open( vlc_object_t *p_this )
{
{
intf_thread_t
*
p_intf
=
(
intf_thread_t
*
)
p_this
;
intf_thread_t
*
p_intf
=
(
intf_thread_t
*
)
p_this
;
p_intf
->
pf_run
=
Run
;
p_intf
->
pf_run
=
Run
;
#if defined HAVE_GETENV && defined Q_WS_X11
#if defined HAVE_GETENV && defined Q_WS_X11
&& defined HAVE_X11_XLIB_H
char
*
psz_display
=
getenv
(
"DISPLAY"
);
char
*
psz_display
=
getenv
(
"DISPLAY"
);
if
(
!
psz_display
||
!*
psz_display
)
if
(
!
psz_display
||
!*
psz_display
)
{
{
msg_Err
(
p_intf
,
"no X server"
);
msg_Err
(
p_intf
,
"no X server"
);
return
VLC_EGENERIC
;
}
/* Thanks for libqt4 calling exit() in QApplication::QApplication()
* instead of returning an error, we have to check for DISPLAY validity */
Display
*
p_display
=
XOpenDisplay
(
psz_display
);
if
(
!
p_display
)
{
msg_Err
(
p_intf
,
"Could not connect to X server %s"
,
psz_display
);
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
XCloseDisplay
(
p_display
);
#endif
#endif
p_intf
->
p_sys
=
(
intf_sys_t
*
)
malloc
(
sizeof
(
intf_sys_t
)
);
p_intf
->
p_sys
=
(
intf_sys_t
*
)
malloc
(
sizeof
(
intf_sys_t
)
);
if
(
!
p_intf
->
p_sys
)
if
(
!
p_intf
->
p_sys
)
...
...
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