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
98f134c2
Commit
98f134c2
authored
Mar 25, 2009
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
video_filter: fix a potential crash (callback called when
p_sys members are destroyed).
parent
c73675ef
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
5 deletions
+21
-5
modules/video_filter/alphamask.c
modules/video_filter/alphamask.c
+6
-3
modules/video_filter/bluescreen.c
modules/video_filter/bluescreen.c
+9
-2
modules/video_filter/rotate.c
modules/video_filter/rotate.c
+4
-0
modules/video_filter/sharpen.c
modules/video_filter/sharpen.c
+2
-0
No files found.
modules/video_filter/alphamask.c
View file @
98f134c2
...
...
@@ -133,11 +133,14 @@ static void Destroy( vlc_object_t *p_this )
filter_t
*
p_filter
=
(
filter_t
*
)
p_this
;
filter_sys_t
*
p_sys
=
p_filter
->
p_sys
;
var_DelCallback
(
p_filter
,
CFG_PREFIX
"mask"
,
MaskCallback
,
p_filter
);
vlc_mutex_destroy
(
&
p_sys
->
mask_lock
);
if
(
p_
filter
->
p_
sys
->
p_mask
)
picture_Release
(
p_
filter
->
p_
sys
->
p_mask
);
if
(
p_sys
->
p_mask
)
picture_Release
(
p_sys
->
p_mask
);
free
(
p_
filter
->
p_
sys
);
free
(
p_sys
);
}
static
picture_t
*
Filter
(
filter_t
*
p_filter
,
picture_t
*
p_pic
)
...
...
modules/video_filter/bluescreen.c
View file @
98f134c2
...
...
@@ -140,6 +140,7 @@ static int Create( vlc_object_t *p_this )
GET_VAR
(
ut
,
0x00
,
0xff
);
GET_VAR
(
vt
,
0x00
,
0xff
);
p_sys
->
p_at
=
NULL
;
#undef GET_VAR
p_filter
->
pf_video_filter
=
Filter
;
...
...
@@ -149,9 +150,15 @@ static int Create( vlc_object_t *p_this )
static
void
Destroy
(
vlc_object_t
*
p_this
)
{
filter_t
*
p_filter
=
(
filter_t
*
)
p_this
;
filter_sys_t
*
p_sys
=
p_filter
->
p_sys
;
var_DelCallback
(
p_filter
,
CFG_PREFIX
"u"
,
BluescreenCallback
,
p_sys
);
var_DelCallback
(
p_filter
,
CFG_PREFIX
"v"
,
BluescreenCallback
,
p_sys
);
var_DelCallback
(
p_filter
,
CFG_PREFIX
"ut"
,
BluescreenCallback
,
p_sys
);
var_DelCallback
(
p_filter
,
CFG_PREFIX
"vt"
,
BluescreenCallback
,
p_sys
);
free
(
p_
filter
->
p_
sys
->
p_at
);
free
(
p_
filter
->
p_
sys
);
free
(
p_sys
->
p_at
);
free
(
p_sys
);
}
static
picture_t
*
Filter
(
filter_t
*
p_filter
,
picture_t
*
p_pic
)
...
...
modules/video_filter/rotate.c
View file @
98f134c2
...
...
@@ -157,6 +157,10 @@ static void Destroy( vlc_object_t *p_this )
{
filter_t
*
p_filter
=
(
filter_t
*
)
p_this
;
var_DelCallback
(
p_filter
,
FILTER_PREFIX
"angle"
,
RotateCallback
,
p_filter
->
p_sys
);
var_DelCallback
(
p_filter
,
FILTER_PREFIX
"deciangle"
,
PreciseRotateCallback
,
p_filter
->
p_sys
);
free
(
p_filter
->
p_sys
);
}
...
...
modules/video_filter/sharpen.c
View file @
98f134c2
...
...
@@ -147,6 +147,8 @@ static int Create( vlc_object_t *p_this )
static
void
Destroy
(
vlc_object_t
*
p_this
)
{
filter_t
*
p_filter
=
(
filter_t
*
)
p_this
;
var_DelCallback
(
p_filter
,
FILTER_PREFIX
"sigma"
,
SharpenCallback
,
p_filter
->
p_sys
);
free
(
p_filter
->
p_sys
);
}
...
...
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