Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
06aedfd0
Commit
06aedfd0
authored
Oct 12, 2014
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
window: dispatch the close event to the vout thread
parent
1d3367a4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
src/video_output/window.c
src/video_output/window.c
+10
-0
No files found.
src/video_output/window.c
View file @
06aedfd0
...
@@ -113,8 +113,10 @@ void vout_window_Delete(vout_window_t *window)
...
@@ -113,8 +113,10 @@ void vout_window_Delete(vout_window_t *window)
}
}
/* Video output display integration */
/* Video output display integration */
#include <vlc_vout.h>
#include <vlc_vout_display.h>
#include <vlc_vout_display.h>
#include "window.h"
#include "window.h"
#include "event.h"
typedef
struct
vout_display_window
typedef
struct
vout_display_window
{
{
...
@@ -140,6 +142,13 @@ static void vout_display_window_ResizeNotify(vout_window_t *window,
...
@@ -140,6 +142,13 @@ static void vout_display_window_ResizeNotify(vout_window_t *window,
vlc_mutex_unlock
(
&
state
->
lock
);
vlc_mutex_unlock
(
&
state
->
lock
);
}
}
static
void
vout_display_window_CloseNotify
(
vout_window_t
*
window
)
{
vout_thread_t
*
vout
=
(
vout_thread_t
*
)
window
->
p_parent
;
vout_SendEventClose
(
vout
);
}
/**
/**
* Creates a video window, initially without any attached display.
* Creates a video window, initially without any attached display.
*/
*/
...
@@ -158,6 +167,7 @@ vout_window_t *vout_display_window_New(vout_thread_t *vout,
...
@@ -158,6 +167,7 @@ vout_window_t *vout_display_window_New(vout_thread_t *vout,
vout_window_owner_t
owner
=
{
vout_window_owner_t
owner
=
{
.
sys
=
state
,
.
sys
=
state
,
.
resized
=
vout_display_window_ResizeNotify
,
.
resized
=
vout_display_window_ResizeNotify
,
.
closed
=
vout_display_window_CloseNotify
,
};
};
vout_window_t
*
window
;
vout_window_t
*
window
;
...
...
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