Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
4bea3fe8
Commit
4bea3fe8
authored
Jun 25, 2009
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move the add/del_callback call (to be sure to have the needed ressources).
parent
649a43d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
modules/video_filter/deinterlace.c
modules/video_filter/deinterlace.c
+4
-2
No files found.
modules/video_filter/deinterlace.c
View file @
4bea3fe8
...
@@ -388,12 +388,12 @@ static int Init( vout_thread_t *p_vout )
...
@@ -388,12 +388,12 @@ static int Init( vout_thread_t *p_vout )
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
var_AddCallback
(
p_vout
,
"deinterlace-mode"
,
FilterCallback
,
NULL
);
vout_filter_AllocateDirectBuffers
(
p_vout
,
VOUT_MAX_PICTURES
);
vout_filter_AllocateDirectBuffers
(
p_vout
,
VOUT_MAX_PICTURES
);
vout_filter_AddChild
(
p_vout
,
p_vout
->
p_sys
->
p_vout
,
MouseEvent
);
vout_filter_AddChild
(
p_vout
,
p_vout
->
p_sys
->
p_vout
,
MouseEvent
);
var_AddCallback
(
p_vout
,
"deinterlace-mode"
,
FilterCallback
,
NULL
);
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
}
}
...
@@ -417,6 +417,8 @@ static void End( vout_thread_t *p_vout )
...
@@ -417,6 +417,8 @@ static void End( vout_thread_t *p_vout )
{
{
vout_sys_t
*
p_sys
=
p_vout
->
p_sys
;
vout_sys_t
*
p_sys
=
p_vout
->
p_sys
;
var_DelCallback
(
p_vout
,
"deinterlace-mode"
,
FilterCallback
,
NULL
);
if
(
p_sys
->
p_vout
)
if
(
p_sys
->
p_vout
)
{
{
vout_filter_DelChild
(
p_vout
,
p_sys
->
p_vout
,
MouseEvent
);
vout_filter_DelChild
(
p_vout
,
p_sys
->
p_vout
,
MouseEvent
);
...
...
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