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
d03cf6ce
Commit
d03cf6ce
authored
Dec 03, 2019
by
Nikolay Sivov
Committed by
Alexandre Julliard
Dec 03, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mfplat: Set origin name attribute for stream based bytestreams too.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
4bfd42ba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
main.c
dlls/mfplat/main.c
+11
-0
No files found.
dlls/mfplat/main.c
View file @
d03cf6ce
...
...
@@ -3245,6 +3245,7 @@ HRESULT WINAPI MFCreateMFByteStreamOnStream(IStream *stream, IMFByteStream **byt
{
struct
bytestream
*
object
;
LARGE_INTEGER
position
;
STATSTG
stat
;
HRESULT
hr
;
TRACE
(
"%p, %p.
\n
"
,
stream
,
bytestream
);
...
...
@@ -3271,6 +3272,16 @@ HRESULT WINAPI MFCreateMFByteStreamOnStream(IStream *stream, IMFByteStream **byt
position
.
QuadPart
=
0
;
IStream_Seek
(
object
->
stream
,
position
,
STREAM_SEEK_SET
,
NULL
);
if
(
SUCCEEDED
(
IStream_Stat
(
object
->
stream
,
&
stat
,
0
)))
{
if
(
stat
.
pwcsName
)
{
IMFAttributes_SetString
(
&
object
->
attributes
.
IMFAttributes_iface
,
&
MF_BYTESTREAM_ORIGIN_NAME
,
stat
.
pwcsName
);
CoTaskMemFree
(
stat
.
pwcsName
);
}
}
*
bytestream
=
&
object
->
IMFByteStream_iface
;
return
S_OK
;
...
...
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