Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
48785825
Commit
48785825
authored
Oct 12, 2007
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qt4: do not access a widget from another thread
parent
4714362c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
modules/gui/qt4/components/interface_widgets.cpp
modules/gui/qt4/components/interface_widgets.cpp
+2
-1
modules/gui/qt4/components/interface_widgets.hpp
modules/gui/qt4/components/interface_widgets.hpp
+1
-0
No files found.
modules/gui/qt4/components/interface_widgets.cpp
View file @
48785825
...
...
@@ -57,6 +57,7 @@ VideoWidget::VideoWidget( intf_thread_t *_p_i ) : QFrame( NULL ), p_intf( _p_i )
vlc_mutex_init
(
p_intf
,
&
lock
);
p_vout
=
NULL
;
CONNECT
(
this
,
askResize
(),
this
,
SetMinSize
()
);
CONNECT
(
this
,
askVideoToShow
(),
this
,
show
()
);
setSizePolicy
(
QSizePolicy
::
Preferred
,
QSizePolicy
::
Preferred
);
}
...
...
@@ -88,7 +89,7 @@ QSize VideoWidget::sizeHint() const
void
*
VideoWidget
::
request
(
vout_thread_t
*
p_nvout
,
int
*
pi_x
,
int
*
pi_y
,
unsigned
int
*
pi_width
,
unsigned
int
*
pi_height
)
{
s
how
();
emit
askVideoToS
how
();
if
(
p_vout
)
{
msg_Dbg
(
p_intf
,
"embedded video already in use"
);
...
...
modules/gui/qt4/components/interface_widgets.hpp
View file @
48785825
...
...
@@ -66,6 +66,7 @@ private:
vlc_mutex_t
lock
;
signals:
void
askResize
();
void
askVideoToShow
();
private
slots
:
void
SetMinSize
();
};
...
...
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