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
4a50f0a7
Commit
4a50f0a7
authored
Feb 08, 2010
by
Srikanth Raju
Committed by
Jean-Philippe André
Feb 14, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: Call Lua status callbacks on playing status changes
Signed-off-by:
Jean-Philippe André
<
jpeg@videolan.org
>
parent
eeda6528
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
0 deletions
+19
-0
modules/gui/qt4/extensions_manager.cpp
modules/gui/qt4/extensions_manager.cpp
+18
-0
modules/gui/qt4/extensions_manager.hpp
modules/gui/qt4/extensions_manager.hpp
+1
-0
No files found.
modules/gui/qt4/extensions_manager.cpp
View file @
4a50f0a7
...
...
@@ -47,6 +47,7 @@ ExtensionsManager::ExtensionsManager( intf_thread_t *_p_intf, QObject *parent )
menuMapper
=
new
QSignalMapper
(
this
);
CONNECT
(
menuMapper
,
mapped
(
int
),
this
,
triggerMenu
(
int
)
);
CONNECT
(
THEMIM
->
getIM
(),
statusChanged
(
int
),
this
,
playingChanged
(
int
)
);
CONNECT
(
THEMIM
,
inputChanged
(
input_thread_t
*
),
this
,
inputChanged
(
input_thread_t
*
)
);
b_unloading
=
false
;
...
...
@@ -271,3 +272,20 @@ void ExtensionsManager::inputChanged( input_thread_t* p_input )
vlc_mutex_unlock
(
&
p_extensions_manager
->
lock
);
}
void
ExtensionsManager
::
playingChanged
(
int
state
)
{
vlc_mutex_lock
(
&
p_extensions_manager
->
lock
);
extension_t
*
p_ext
;
FOREACH_ARRAY
(
p_ext
,
p_extensions_manager
->
extensions
)
{
if
(
extension_IsActivated
(
p_extensions_manager
,
p_ext
)
)
{
extension_PlayingChanged
(
p_extensions_manager
,
p_ext
,
state
);
}
}
FOREACH_END
()
vlc_mutex_unlock
(
&
p_extensions_manager
->
lock
);
}
modules/gui/qt4/extensions_manager.hpp
View file @
4a50f0a7
...
...
@@ -79,6 +79,7 @@ public slots:
private
slots
:
void
triggerMenu
(
int
id
);
void
inputChanged
(
input_thread_t
*
p_input
);
void
playingChanged
(
int
);
private:
static
ExtensionsManager
*
instance
;
...
...
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