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
8fd71e10
Commit
8fd71e10
authored
Aug 31, 2007
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Unblocks SIGCHLD in qt4 thread
parent
7e772f7d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
17 deletions
+16
-17
modules/gui/qt4/menus.cpp
modules/gui/qt4/menus.cpp
+0
-17
modules/gui/qt4/qt4.cpp
modules/gui/qt4/qt4.cpp
+16
-0
No files found.
modules/gui/qt4/menus.cpp
View file @
8fd71e10
...
...
@@ -22,10 +22,6 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#ifndef WIN32
# include <signal.h>
#endif
#include <vlc_intf_strings.h>
#include "main_interface.hpp"
...
...
@@ -171,20 +167,7 @@ void QVLCMenu::createMenuBar( MainInterface *mi, intf_thread_t *p_intf,
bool
playlist
,
bool
adv_controls_enabled
,
bool
visual_selector_enabled
)
{
#ifndef WIN32
/* Ugly klugde
* Remove SIGCHLD from the ignored signal the time to initialise
* Qt because it call gconf to get the icon theme */
sigset_t
set
;
sigemptyset
(
&
set
);
sigaddset
(
&
set
,
SIGCHLD
);
pthread_sigmask
(
SIG_UNBLOCK
,
&
set
,
NULL
);
#endif
/* WIN32 */
QMenuBar
*
bar
=
mi
->
menuBar
();
#ifndef WIN32
pthread_sigmask
(
SIG_BLOCK
,
&
set
,
NULL
);
#endif
/* WIN32 */
BAR_ADD
(
FileMenu
(),
qtr
(
"&Media"
)
);
if
(
playlist
)
{
...
...
modules/gui/qt4/qt4.cpp
View file @
8fd71e10
...
...
@@ -21,6 +21,10 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#ifndef WIN32
# include <signal.h>
#endif
#include <QApplication>
#include "qt4.hpp"
...
...
@@ -209,7 +213,19 @@ static void Init( intf_thread_t *p_intf )
}
if
(
p_intf
->
pf_show_dialog
)
{
vlc_thread_ready
(
p_intf
);
#ifndef WIN32
/* unblocks SIGCHLD as that makes the app hang
* when cleanlooks style is used with QT4
* ( exactly when launching gconftool-2 to get the icon theme ) */
sigset_t
set
;
sigemptyset
(
&
set
);
sigaddset
(
&
set
,
SIGCHLD
);
pthread_sigmask
(
SIG_UNBLOCK
,
&
set
,
NULL
);
#endif
}
/* Start playing if needed */
if
(
!
p_intf
->
pf_show_dialog
&&
p_intf
->
b_play
)
...
...
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