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
594d7138
Commit
594d7138
authored
Aug 06, 2006
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Put just deleted objects to NULL.
parent
9b14f80f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
src/misc/image.c
src/misc/image.c
+7
-3
No files found.
src/misc/image.c
View file @
594d7138
...
...
@@ -97,6 +97,7 @@ void image_HandlerDelete( image_handler_t *p_image )
if
(
p_image
->
p_filter
)
DeleteFilter
(
p_image
->
p_filter
);
free
(
p_image
);
p_image
=
NULL
;
}
/**
...
...
@@ -408,7 +409,7 @@ static picture_t *ImageConvert( image_handler_t *p_image, picture_t *p_pic,
{
/* We need to restart a new filter */
DeleteFilter
(
p_image
->
p_filter
);
p_image
->
p_filter
=
0
;
p_image
->
p_filter
=
NULL
;
}
/* Start a filter */
...
...
@@ -654,6 +655,7 @@ static void DeleteDecoder( decoder_t * p_dec )
es_format_Clean
(
&
p_dec
->
fmt_out
);
vlc_object_destroy
(
p_dec
);
p_dec
=
NULL
;
}
static
encoder_t
*
CreateEncoder
(
vlc_object_t
*
p_this
,
video_format_t
*
fmt_in
,
...
...
@@ -736,6 +738,7 @@ static void DeleteEncoder( encoder_t * p_enc )
es_format_Clean
(
&
p_enc
->
fmt_out
);
vlc_object_destroy
(
p_enc
);
p_enc
=
NULL
;
}
static
filter_t
*
CreateFilter
(
vlc_object_t
*
p_this
,
es_format_t
*
p_fmt_in
,
...
...
@@ -756,8 +759,8 @@ static filter_t *CreateFilter( vlc_object_t *p_this, es_format_t *p_fmt_in,
p_filter
->
fmt_out
=
*
p_fmt_in
;
p_filter
->
fmt_out
.
i_codec
=
p_fmt_out
->
i_chroma
;
p_filter
->
fmt_out
.
video
=
*
p_fmt_out
;
p_filter
->
p_module
=
module_Need
(
p_filter
,
"video filter2"
,
psz_module
,
0
);
p_filter
->
p_module
=
module_Need
(
p_filter
,
"video filter2"
,
psz_module
,
0
);
if
(
!
p_filter
->
p_module
)
{
...
...
@@ -779,4 +782,5 @@ static void DeleteFilter( filter_t * p_filter )
es_format_Clean
(
&
p_filter
->
fmt_out
);
vlc_object_destroy
(
p_filter
);
p_filter
=
NULL
;
}
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