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
5b1a2014
Commit
5b1a2014
authored
Jun 18, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Jun 29, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegstreamer: Move byte stream caps checks to BeginCreateObject.
parent
9258d7ab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
10 deletions
+9
-10
media_source.c
dlls/winegstreamer/media_source.c
+9
-10
No files found.
dlls/winegstreamer/media_source.c
View file @
5b1a2014
...
...
@@ -1615,20 +1615,10 @@ static HRESULT media_source_create(struct object_context *context, IMFMediaSourc
unsigned
int
stream_count
=
UINT_MAX
;
struct
media_source
*
object
;
struct
wg_parser
*
parser
;
DWORD
bytestream_caps
;
QWORD
file_size
;
unsigned
int
i
;
HRESULT
hr
;
if
(
FAILED
(
hr
=
IMFByteStream_GetCapabilities
(
context
->
stream
,
&
bytestream_caps
)))
return
hr
;
if
(
!
(
bytestream_caps
&
MFBYTESTREAM_IS_SEEKABLE
))
{
FIXME
(
"Non-seekable bytestreams not supported.
\n
"
);
return
MF_E_BYTESTREAM_NOT_SEEKABLE
;
}
if
(
FAILED
(
hr
=
IMFByteStream_GetLength
(
context
->
stream
,
&
file_size
)))
{
FIXME
(
"Failed to get byte stream length, hr %#lx.
\n
"
,
hr
);
...
...
@@ -1870,6 +1860,7 @@ static HRESULT WINAPI stream_handler_BeginCreateObject(IMFByteStreamHandler *ifa
IMFAsyncResult
*
result
;
IUnknown
*
context
;
HRESULT
hr
;
DWORD
caps
;
TRACE
(
"%p, %s, %#lx, %p, %p, %p, %p.
\n
"
,
iface
,
debugstr_w
(
url
),
flags
,
props
,
cancel_cookie
,
callback
,
state
);
...
...
@@ -1881,6 +1872,14 @@ static HRESULT WINAPI stream_handler_BeginCreateObject(IMFByteStreamHandler *ifa
if
(
flags
!=
MF_RESOLUTION_MEDIASOURCE
)
FIXME
(
"Unimplemented flags %#lx
\n
"
,
flags
);
if
(
FAILED
(
hr
=
IMFByteStream_GetCapabilities
(
stream
,
&
caps
)))
return
hr
;
if
(
!
(
caps
&
MFBYTESTREAM_IS_SEEKABLE
))
{
FIXME
(
"Non-seekable bytestreams not supported.
\n
"
);
return
MF_E_BYTESTREAM_NOT_SEEKABLE
;
}
if
(
FAILED
(
hr
=
MFCreateAsyncResult
(
NULL
,
callback
,
state
,
&
result
)))
return
hr
;
...
...
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