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
929889ac
Commit
929889ac
authored
Jun 06, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Jun 28, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegstreamer: Return early if no byte stream was provided.
parent
32c748e1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
+2
-8
media_source.c
dlls/winegstreamer/media_source.c
+2
-8
No files found.
dlls/winegstreamer/media_source.c
View file @
929889ac
...
...
@@ -1823,7 +1823,6 @@ static ULONG WINAPI create_object_context_Release(IUnknown *iface)
if
(
!
refcount
)
{
if
(
context
->
stream
)
IMFByteStream_Release
(
context
->
stream
);
free
(
context
->
url
);
free
(
context
);
...
...
@@ -1852,6 +1851,8 @@ static HRESULT WINAPI stream_handler_BeginCreateObject(IMFByteStreamHandler *ifa
if
(
cancel_cookie
)
*
cancel_cookie
=
NULL
;
if
(
!
stream
)
return
E_INVALIDARG
;
if
(
FAILED
(
hr
=
MFCreateAsyncResult
(
NULL
,
callback
,
state
,
&
caller
)))
return
hr
;
...
...
@@ -1865,16 +1866,9 @@ static HRESULT WINAPI stream_handler_BeginCreateObject(IMFByteStreamHandler *ifa
context
->
refcount
=
1
;
context
->
flags
=
flags
;
context
->
stream
=
stream
;
if
(
context
->
stream
)
IMFByteStream_AddRef
(
context
->
stream
);
if
(
url
)
context
->
url
=
wcsdup
(
url
);
if
(
!
context
->
stream
)
{
IMFAsyncResult_Release
(
caller
);
IUnknown_Release
(
&
context
->
IUnknown_iface
);
return
E_OUTOFMEMORY
;
}
hr
=
MFCreateAsyncResult
(
&
context
->
IUnknown_iface
,
&
handler
->
IMFAsyncCallback_iface
,
(
IUnknown
*
)
caller
,
&
item
);
IUnknown_Release
(
&
context
->
IUnknown_iface
);
...
...
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