Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
57492f55
Commit
57492f55
authored
Mar 16, 2020
by
Zebediah Figura
Committed by
Alexandre Julliard
Mar 16, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegstreamer: Allocate media type format blocks with CoTaskMemAlloc().
Signed-off-by:
Zebediah Figura
<
zfigura@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
435b41ec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
gstdemux.c
dlls/winegstreamer/gstdemux.c
+4
-4
No files found.
dlls/winegstreamer/gstdemux.c
View file @
57492f55
...
...
@@ -121,7 +121,7 @@ static gboolean amt_from_gst_caps_audio_raw(const GstCaps *caps, AM_MEDIA_TYPE *
if
(
!
gst_audio_info_from_caps
(
&
ainfo
,
caps
))
return
FALSE
;
wfe
=
heap_a
lloc
(
sizeof
(
*
wfe
));
wfe
=
CoTaskMemA
lloc
(
sizeof
(
*
wfe
));
wfx
=
(
WAVEFORMATEX
*
)
wfe
;
amt
->
majortype
=
MEDIATYPE_Audio
;
amt
->
subtype
=
MEDIASUBTYPE_PCM
;
...
...
@@ -186,7 +186,7 @@ static gboolean amt_from_gst_caps_video_raw(const GstCaps *caps, AM_MEDIA_TYPE *
nom
=
vinfo
.
fps_n
;
denom
=
vinfo
.
fps_d
;
vih
=
heap_a
lloc
(
sizeof
(
*
vih
));
vih
=
CoTaskMemA
lloc
(
sizeof
(
*
vih
));
bih
=
&
vih
->
bmiHeader
;
amt
->
formattype
=
FORMAT_VideoInfo
;
...
...
@@ -225,14 +225,14 @@ static gboolean amt_from_gst_caps_video_raw(const GstCaps *caps, AM_MEDIA_TYPE *
break
;
default:
FIXME
(
"Unhandled type %s.
\n
"
,
vinfo
.
finfo
->
name
);
heap_f
ree
(
vih
);
CoTaskMemF
ree
(
vih
);
return
FALSE
;
}
bih
->
biCompression
=
BI_RGB
;
}
else
{
amt
->
subtype
=
MEDIATYPE_Video
;
if
(
!
(
amt
->
subtype
.
Data1
=
gst_video_format_to_fourcc
(
vinfo
.
finfo
->
format
)))
{
heap_f
ree
(
vih
);
CoTaskMemF
ree
(
vih
);
return
FALSE
;
}
switch
(
amt
->
subtype
.
Data1
)
{
...
...
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