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
43b98677
Commit
43b98677
authored
Oct 24, 2014
by
Thomas Guillem
Committed by
Jean-Baptiste Kempf
Oct 24, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
omxil: fix crash if OMX_AllocateBuffer fails (debug build only)
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
ab4c04f2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
modules/codec/omxil/omxil.c
modules/codec/omxil/omxil.c
+4
-2
No files found.
modules/codec/omxil/omxil.c
View file @
43b98677
...
...
@@ -480,7 +480,8 @@ static OMX_ERRORTYPE AllocateBuffers(decoder_t *p_dec, OmxPort *p_port)
p_port
->
i_port_index
,
0
,
p_port
->
definition
.
nBufferSize
,
(
void
*
)
1
);
OMX_DBG
(
"OMX_UseBuffer(%d) %p, %p"
,
def
->
eDir
,
p_port
->
pp_buffers
[
i
],
p_port
->
pp_buffers
[
i
]
->
pBuffer
);
p_port
->
pp_buffers
[
i
],
p_port
->
pp_buffers
[
i
]
?
p_port
->
pp_buffers
[
i
]
->
pBuffer
:
NULL
);
}
else
{
...
...
@@ -489,7 +490,8 @@ static OMX_ERRORTYPE AllocateBuffers(decoder_t *p_dec, OmxPort *p_port)
p_port
->
i_port_index
,
0
,
p_port
->
definition
.
nBufferSize
);
OMX_DBG
(
"OMX_AllocateBuffer(%d) %p, %p"
,
def
->
eDir
,
p_port
->
pp_buffers
[
i
],
p_port
->
pp_buffers
[
i
]
->
pBuffer
);
p_port
->
pp_buffers
[
i
],
p_port
->
pp_buffers
[
i
]
?
p_port
->
pp_buffers
[
i
]
->
pBuffer
:
NULL
);
}
if
(
omx_error
!=
OMX_ErrorNone
)
...
...
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