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
f1378a15
Commit
f1378a15
authored
Apr 02, 2011
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epg: hold input before lock access
parent
8f5480c6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
3 deletions
+18
-3
modules/gui/qt4/dialogs/epg.cpp
modules/gui/qt4/dialogs/epg.cpp
+18
-3
No files found.
modules/gui/qt4/dialogs/epg.cpp
View file @
f1378a15
...
...
@@ -27,6 +27,7 @@
#include "dialogs/epg.hpp"
#include "components/epg/EPGWidget.hpp"
#include <vlc_playlist.h>
#include <QVBoxLayout>
#include <QSplitter>
...
...
@@ -119,7 +120,21 @@ void EpgDialog::showEvent( EPGItem *epgItem )
void
EpgDialog
::
updateInfos
()
{
timer
->
stop
();
if
(
!
THEMIM
->
getInput
()
)
return
;
epg
->
updateEPG
(
input_GetItem
(
THEMIM
->
getInput
()
)
);
input_item_t
*
p_input_item
=
NULL
;
playlist_t
*
p_playlist
=
THEPL
;
input_thread_t
*
p_input_thread
=
playlist_CurrentInput
(
p_playlist
);
/* w/hold */
if
(
p_input_thread
)
{
PL_LOCK
;
/* as input_GetItem still unfixed */
p_input_item
=
input_GetItem
(
p_input_thread
);
if
(
p_input_item
)
vlc_gc_incref
(
p_input_item
);
PL_UNLOCK
;
vlc_object_release
(
p_input_thread
);
if
(
p_input_item
)
{
epg
->
updateEPG
(
p_input_item
);
vlc_gc_decref
(
p_input_item
);
if
(
isVisible
()
)
timer
->
start
();
}
}
}
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