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
a878f3ac
Commit
a878f3ac
authored
Jun 13, 2007
by
Damien Fouilleul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qt4: a few stability fixes when working as a dialogs provider, needs a lot more ...
parent
9924f657
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
16 deletions
+29
-16
modules/gui/qt4/input_manager.cpp
modules/gui/qt4/input_manager.cpp
+28
-15
modules/gui/qt4/qt4.hpp
modules/gui/qt4/qt4.hpp
+1
-1
No files found.
modules/gui/qt4/input_manager.cpp
View file @
a878f3ac
...
...
@@ -261,6 +261,8 @@ MainInputManager::~MainInputManager()
void
MainInputManager
::
updateInput
()
{
if
(
VLC_OBJECT_INTF
==
p_intf
->
i_object_type
)
{
vlc_mutex_lock
(
&
p_intf
->
change_lock
);
if
(
p_input
&&
p_input
->
b_dead
)
{
...
...
@@ -282,6 +284,17 @@ void MainInputManager::updateInput()
QPL_UNLOCK
;
}
vlc_mutex_unlock
(
&
p_intf
->
change_lock
);
}
else
{
/* we are working as a dialogs provider */
playlist_t
*
p_playlist
=
(
playlist_t
*
)
vlc_object_find
(
p_intf
,
VLC_OBJECT_PLAYLIST
,
FIND_ANYWHERE
);
if
(
p_playlist
)
{
p_input
=
p_playlist
->
p_input
;
emit
inputChanged
(
p_input
);
}
}
}
void
MainInputManager
::
stop
()
...
...
modules/gui/qt4/qt4.hpp
View file @
a878f3ac
...
...
@@ -54,7 +54,7 @@ struct intf_sys_t
#define QPL_UNLOCK vlc_mutex_unlock( &THEPL->object_lock );
#define THEDP DialogsProvider::getInstance()
#define THEMIM MainInputManager::getInstance(
NULL
)
#define THEMIM MainInputManager::getInstance(
p_intf
)
#define qfu( i ) QString::fromUtf8( i )
#define qtr( i ) QString::fromUtf8( _(i) )
...
...
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