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
5f010182
Commit
5f010182
authored
Jun 20, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4: wait until the video output is ready
Except that this still returns an X11 invalid handle
parent
81126aae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
modules/gui/qt4/components/interface_widgets.cpp
modules/gui/qt4/components/interface_widgets.cpp
+9
-2
No files found.
modules/gui/qt4/components/interface_widgets.cpp
View file @
5f010182
...
...
@@ -68,8 +68,14 @@ VideoWidget::VideoWidget( intf_thread_t *_p_i ) : QFrame( NULL ), p_intf( _p_i )
plt
.
setColor
(
QPalette
::
Inactive
,
QPalette
::
Window
,
Qt
::
black
);
setPalette
(
plt
);
/* The core can ask through a callback to show the video */
CONNECT
(
this
,
askVideoWidgetToShow
(),
this
,
show
()
);
/* The core can ask through a callback to show the video.
* NOTE: We need to block the video output core until the window handle
* is ready for use (otherwise an X11 invalid handle failure may occur).
* As a side effect, it is illegal to emit askVideoWidgetToShow from
* the same thread as the Qt4 thread that owns this. */
QObject
::
connect
(
this
,
SIGNAL
(
askVideoWidgetToShow
()),
this
,
SLOT
(
show
()),
Qt
::
BlockingQueuedConnection
);
/* The core can ask through a callback to resize the video */
// CONNECT( this, askResize( int, int ), this, SetSizing( int, int ) );
}
...
...
@@ -108,6 +114,7 @@ void *VideoWidget::request( vout_thread_t *p_nvout, int *pi_x, int *pi_y,
return
NULL
;
}
p_vout
=
p_nvout
;
msg_Dbg
(
p_intf
,
"embedded video handle %p"
,
winId
()
);
return
(
void
*
)
winId
();
}
...
...
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