Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
129e5660
Commit
129e5660
authored
Apr 12, 2021
by
Nikolay Sivov
Committed by
Alexandre Julliard
Apr 12, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mfreadwrite/reader: Add missing allocation check (Coverity).
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
babdafff
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
reader.c
dlls/mfreadwrite/reader.c
+7
-4
No files found.
dlls/mfreadwrite/reader.c
View file @
129e5660
...
...
@@ -442,12 +442,14 @@ static void source_reader_set_sa_response(struct source_reader *reader, struct s
}
}
static
void
source_reader_queue_response
(
struct
source_reader
*
reader
,
struct
media_stream
*
stream
,
HRESULT
status
,
static
HRESULT
source_reader_queue_response
(
struct
source_reader
*
reader
,
struct
media_stream
*
stream
,
HRESULT
status
,
DWORD
stream_flags
,
LONGLONG
timestamp
,
IMFSample
*
sample
)
{
struct
stream_response
*
response
;
response
=
calloc
(
1
,
sizeof
(
*
response
));
if
(
!
(
response
=
calloc
(
1
,
sizeof
(
*
response
))))
return
E_OUTOFMEMORY
;
response
->
status
=
status
;
response
->
stream_index
=
stream
->
index
;
response
->
stream_flags
=
stream_flags
;
...
...
@@ -466,6 +468,8 @@ static void source_reader_queue_response(struct source_reader *reader, struct me
stream
->
responses
++
;
source_reader_response_ready
(
reader
,
response
);
return
S_OK
;
}
static
HRESULT
source_reader_request_sample
(
struct
source_reader
*
reader
,
struct
media_stream
*
stream
)
...
...
@@ -716,8 +720,7 @@ static HRESULT source_reader_process_sample(struct source_reader *reader, struct
if
(
FAILED
(
IMFSample_GetSampleTime
(
sample
,
&
timestamp
)))
WARN
(
"Sample time wasn't set.
\n
"
);
source_reader_queue_response
(
reader
,
stream
,
S_OK
,
0
,
timestamp
,
sample
);
return
S_OK
;
return
source_reader_queue_response
(
reader
,
stream
,
S_OK
,
0
,
timestamp
,
sample
);
}
/* It's assumed that decoder has 1 input and 1 output, both id's are 0. */
...
...
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