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
82108a21
Commit
82108a21
authored
Oct 17, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vout_window_t: privatize module pointer
parent
dc873d6a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
9 deletions
+13
-9
include/vlc_vout_window.h
include/vlc_vout_window.h
+0
-3
src/video_output/window.c
src/video_output/window.c
+13
-6
No files found.
include/vlc_vout_window.h
View file @
82108a21
...
@@ -78,9 +78,6 @@ typedef struct {
...
@@ -78,9 +78,6 @@ typedef struct {
struct
vout_window_t
{
struct
vout_window_t
{
VLC_COMMON_MEMBERS
VLC_COMMON_MEMBERS
/* Module */
module_t
*
module
;
/* Initial state (reserved).
/* Initial state (reserved).
* Once the open function is called, it will be set to NULL
* Once the open function is called, it will be set to NULL
*/
*/
...
...
src/video_output/window.c
View file @
82108a21
...
@@ -33,13 +33,20 @@
...
@@ -33,13 +33,20 @@
#include <vlc_vout_window.h>
#include <vlc_vout_window.h>
#include <libvlc.h>
#include <libvlc.h>
typedef
struct
{
vout_window_t
wnd
;
module_t
*
module
;
}
window_t
;
vout_window_t
*
vout_window_New
(
vlc_object_t
*
obj
,
vout_window_t
*
vout_window_New
(
vlc_object_t
*
obj
,
const
char
*
module
,
const
char
*
module
,
const
vout_window_cfg_t
*
cfg
)
const
vout_window_cfg_t
*
cfg
)
{
{
static
char
const
name
[]
=
"window"
;
static
char
const
name
[]
=
"window"
;
vout_window_t
*
window
=
vlc_custom_create
(
obj
,
sizeof
(
*
window
),
window_t
*
w
=
vlc_custom_create
(
obj
,
sizeof
(
*
w
),
VLC_OBJECT_GENERIC
,
name
);
VLC_OBJECT_GENERIC
,
name
);
vout_window_t
*
window
=
&
w
->
wnd
;
window
->
cfg
=
cfg
;
window
->
cfg
=
cfg
;
memset
(
&
window
->
handle
,
0
,
sizeof
(
window
->
handle
));
memset
(
&
window
->
handle
,
0
,
sizeof
(
window
->
handle
));
window
->
control
=
NULL
;
window
->
control
=
NULL
;
...
@@ -59,9 +66,8 @@ vout_window_t *vout_window_New(vlc_object_t *obj,
...
@@ -59,9 +66,8 @@ vout_window_t *vout_window_New(vlc_object_t *obj,
assert
(
0
);
assert
(
0
);
}
}
window
->
module
=
module_need
(
window
,
type
,
w
->
module
=
module_need
(
window
,
type
,
module
,
module
&&
*
module
!=
'\0'
);
module
,
module
&&
*
module
!=
'\0'
);
if
(
!
w
->
module
)
{
if
(
!
window
->
module
)
{
vlc_object_detach
(
window
);
vlc_object_detach
(
window
);
vlc_object_release
(
window
);
vlc_object_release
(
window
);
return
NULL
;
return
NULL
;
...
@@ -74,9 +80,10 @@ void vout_window_Delete(vout_window_t *window)
...
@@ -74,9 +80,10 @@ void vout_window_Delete(vout_window_t *window)
if
(
!
window
)
if
(
!
window
)
return
;
return
;
window_t
*
w
=
(
window_t
*
)
window
;
vlc_object_detach
(
window
);
vlc_object_detach
(
window
);
module_unneed
(
window
,
w
indow
->
module
);
module_unneed
(
window
,
w
->
module
);
vlc_object_release
(
window
);
vlc_object_release
(
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