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
bd102b52
Commit
bd102b52
authored
Aug 19, 2012
by
Nikolay Sivov
Committed by
Alexandre Julliard
Aug 20, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
amstream: Call interface methods properly.
parent
e40d0286
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
+8
-8
amstream.c
dlls/amstream/amstream.c
+3
-3
audiodata.c
dlls/amstream/audiodata.c
+1
-1
mediastream.c
dlls/amstream/mediastream.c
+2
-2
amstream.c
dlls/amstream/tests/amstream.c
+2
-2
No files found.
dlls/amstream/amstream.c
View file @
bd102b52
...
@@ -87,8 +87,8 @@ static HRESULT WINAPI IAMMultiMediaStreamImpl_QueryInterface(IAMMultiMediaStream
...
@@ -87,8 +87,8 @@ static HRESULT WINAPI IAMMultiMediaStreamImpl_QueryInterface(IAMMultiMediaStream
IsEqualGUID
(
riid
,
&
IID_IMultiMediaStream
)
||
IsEqualGUID
(
riid
,
&
IID_IMultiMediaStream
)
||
IsEqualGUID
(
riid
,
&
IID_IAMMultiMediaStream
))
IsEqualGUID
(
riid
,
&
IID_IAMMultiMediaStream
))
{
{
I
Unknown
_AddRef
(
iface
);
I
AMMultiMediaStream
_AddRef
(
iface
);
*
ppvObject
=
This
;
*
ppvObject
=
iface
;
return
S_OK
;
return
S_OK
;
}
}
...
@@ -306,7 +306,7 @@ static HRESULT WINAPI IAMMultiMediaStreamImpl_GetFilterGraph(IAMMultiMediaStream
...
@@ -306,7 +306,7 @@ static HRESULT WINAPI IAMMultiMediaStreamImpl_GetFilterGraph(IAMMultiMediaStream
return
E_POINTER
;
return
E_POINTER
;
if
(
This
->
pFilterGraph
)
if
(
This
->
pFilterGraph
)
return
I
FilterGraph
_QueryInterface
(
This
->
pFilterGraph
,
&
IID_IGraphBuilder
,
(
void
**
)
ppGraphBuilder
);
return
I
GraphBuilder
_QueryInterface
(
This
->
pFilterGraph
,
&
IID_IGraphBuilder
,
(
void
**
)
ppGraphBuilder
);
else
else
*
ppGraphBuilder
=
NULL
;
*
ppGraphBuilder
=
NULL
;
...
...
dlls/amstream/audiodata.c
View file @
bd102b52
...
@@ -48,7 +48,7 @@ static HRESULT WINAPI IAudioDataImpl_QueryInterface(IAudioData *iface, REFIID ri
...
@@ -48,7 +48,7 @@ static HRESULT WINAPI IAudioDataImpl_QueryInterface(IAudioData *iface, REFIID ri
IsEqualGUID
(
riid
,
&
IID_IMemoryData
)
||
IsEqualGUID
(
riid
,
&
IID_IMemoryData
)
||
IsEqualGUID
(
riid
,
&
IID_IAudioData
))
IsEqualGUID
(
riid
,
&
IID_IAudioData
))
{
{
I
Unknown
_AddRef
(
iface
);
I
AudioData
_AddRef
(
iface
);
*
ret_iface
=
iface
;
*
ret_iface
=
iface
;
return
S_OK
;
return
S_OK
;
}
}
...
...
dlls/amstream/mediastream.c
View file @
bd102b52
...
@@ -60,8 +60,8 @@ static HRESULT WINAPI IDirectDrawMediaStreamImpl_QueryInterface(IDirectDrawMedia
...
@@ -60,8 +60,8 @@ static HRESULT WINAPI IDirectDrawMediaStreamImpl_QueryInterface(IDirectDrawMedia
IsEqualGUID
(
riid
,
&
IID_IMediaStream
)
||
IsEqualGUID
(
riid
,
&
IID_IMediaStream
)
||
IsEqualGUID
(
riid
,
&
IID_IDirectDrawMediaStream
))
IsEqualGUID
(
riid
,
&
IID_IDirectDrawMediaStream
))
{
{
I
Unknown
_AddRef
(
iface
);
I
DirectDrawMediaStream
_AddRef
(
iface
);
*
ppv
=
This
;
*
ppv
=
iface
;
return
S_OK
;
return
S_OK
;
}
}
...
...
dlls/amstream/tests/amstream.c
View file @
bd102b52
...
@@ -155,7 +155,7 @@ static void test_renderfile(void)
...
@@ -155,7 +155,7 @@ static void test_renderfile(void)
error:
error:
if
(
pddsample
)
if
(
pddsample
)
IDirectDraw
Media
Sample_Release
(
pddsample
);
IDirectDraw
Stream
Sample_Release
(
pddsample
);
if
(
pddstream
)
if
(
pddstream
)
IDirectDrawMediaStream_Release
(
pddstream
);
IDirectDrawMediaStream_Release
(
pddstream
);
if
(
pvidstream
)
if
(
pvidstream
)
...
@@ -260,7 +260,7 @@ static void test_media_streams(void)
...
@@ -260,7 +260,7 @@ static void test_media_streams(void)
}
}
if
(
ddraw_sample
)
if
(
ddraw_sample
)
IDirectDraw
Media
Sample_Release
(
ddraw_sample
);
IDirectDraw
Stream
Sample_Release
(
ddraw_sample
);
if
(
ddraw_stream
)
if
(
ddraw_stream
)
IDirectDrawMediaStream_Release
(
ddraw_stream
);
IDirectDrawMediaStream_Release
(
ddraw_stream
);
}
}
...
...
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