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
9e143cdb
Commit
9e143cdb
authored
Apr 25, 2008
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Apr 28, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: NotifyAllocator does not like a null argument.
parent
1f136a57
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
pin.c
dlls/quartz/pin.c
+9
-4
videorenderer.c
dlls/quartz/tests/videorenderer.c
+1
-0
No files found.
dlls/quartz/pin.c
View file @
9e143cdb
...
...
@@ -759,6 +759,13 @@ HRESULT WINAPI MemInputPin_NotifyAllocator(IMemInputPin * iface, IMemAllocator *
if
(
bReadOnly
)
FIXME
(
"Read only flag not handled yet!
\n
"
);
/* FIXME: Should we release the allocator on disconnection? */
if
(
!
pAllocator
)
{
WARN
(
"Null allocator
\n
"
);
return
E_POINTER
;
}
if
(
This
->
pAllocator
)
IMemAllocator_Release
(
This
->
pAllocator
);
This
->
pAllocator
=
pAllocator
;
...
...
@@ -1187,11 +1194,9 @@ HRESULT OutputPin_DeliverDisconnect(OutputPin * This)
}
else
/* Kill the allocator! */
{
hr
=
IMemInputPin_NotifyAllocator
(
This
->
pMemInputPin
,
NULL
,
0
);
if
(
SUCCEEDED
(
hr
))
hr
=
IPin_Disconnect
(
This
->
pin
.
pConnectedTo
);
hr
=
IPin_Disconnect
(
This
->
pin
.
pConnectedTo
);
}
IPin_Disconnect
((
IPin
*
)
This
);
}
LeaveCriticalSection
(
This
->
pin
.
pCritSec
);
...
...
dlls/quartz/tests/videorenderer.c
View file @
9e143cdb
...
...
@@ -96,6 +96,7 @@ static void test_pin(IPin *pin)
if
(
mpin
)
{
ok
(
IMemInputPin_ReceiveCanBlock
(
mpin
)
==
S_OK
,
"Receive can't block for pin!
\n
"
);
ok
(
IMemInputPin_NotifyAllocator
(
mpin
,
NULL
,
0
)
==
E_POINTER
,
"NotifyAllocator likes a NULL pointer argument
\n
"
);
IMemInputPin_Release
(
mpin
);
}
/* TODO */
...
...
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