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
dc1a1ae4
Commit
dc1a1ae4
authored
Nov 08, 2021
by
Zebediah Figura
Committed by
Alexandre Julliard
Nov 09, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegstreamer: Implement INSSBuffer::GetBuffer().
Signed-off-by:
Zebediah Figura
<
zfigura@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d68ea162
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
4 deletions
+22
-4
wm_reader.c
dlls/winegstreamer/wm_reader.c
+6
-2
wmvcore.c
dlls/wmvcore/tests/wmvcore.c
+16
-2
No files found.
dlls/winegstreamer/wm_reader.c
View file @
dc1a1ae4
...
...
@@ -243,8 +243,12 @@ static HRESULT WINAPI buffer_GetMaxLength(INSSBuffer *iface, DWORD *size)
static
HRESULT
WINAPI
buffer_GetBuffer
(
INSSBuffer
*
iface
,
BYTE
**
data
)
{
FIXME
(
"iface %p, data %p, stub!
\n
"
,
iface
,
data
);
return
E_NOTIMPL
;
struct
buffer
*
buffer
=
impl_from_INSSBuffer
(
iface
);
TRACE
(
"buffer %p, data %p.
\n
"
,
buffer
,
data
);
*
data
=
buffer
->
data
;
return
S_OK
;
}
static
HRESULT
WINAPI
buffer_GetBufferAndLength
(
INSSBuffer
*
iface
,
BYTE
**
data
,
DWORD
*
size
)
...
...
dlls/wmvcore/tests/wmvcore.c
View file @
dc1a1ae4
...
...
@@ -602,9 +602,9 @@ static void test_sync_reader_streaming(void)
IWMProfile
*
profile
;
QWORD
pts
,
duration
;
INSSBuffer
*
sample
;
BYTE
*
data
,
*
data2
;
HANDLE
file
;
HRESULT
hr
;
BYTE
*
data
;
BOOL
ret
;
file
=
CreateFileW
(
filename
,
GENERIC_READ
,
0
,
NULL
,
OPEN_EXISTING
,
0
,
0
);
...
...
@@ -677,6 +677,11 @@ static void test_sync_reader_streaming(void)
{
hr
=
INSSBuffer_GetBufferAndLength
(
sample
,
&
data
,
&
size
);
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
hr
=
INSSBuffer_GetBuffer
(
sample
,
&
data2
);
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
ok
(
data2
==
data
,
"Data pointers didn't match.
\n
"
);
ref
=
INSSBuffer_Release
(
sample
);
ok
(
!
ref
,
"Got outstanding refcount %d.
\n
"
,
ref
);
...
...
@@ -737,6 +742,11 @@ static void test_sync_reader_streaming(void)
{
hr
=
INSSBuffer_GetBufferAndLength
(
sample
,
&
data
,
&
size
);
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
hr
=
INSSBuffer_GetBuffer
(
sample
,
&
data2
);
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
ok
(
data2
==
data
,
"Data pointers didn't match.
\n
"
);
ref
=
INSSBuffer_Release
(
sample
);
ok
(
!
ref
,
"Got outstanding refcount %d.
\n
"
,
ref
);
}
...
...
@@ -1183,9 +1193,9 @@ static HRESULT WINAPI callback_OnSample(IWMReaderCallback *iface, DWORD output,
QWORD
time
,
QWORD
duration
,
DWORD
flags
,
INSSBuffer
*
sample
,
void
*
context
)
{
struct
callback
*
callback
=
impl_from_IWMReaderCallback
(
iface
);
BYTE
*
data
,
*
data2
;
HRESULT
hr
;
DWORD
size
;
BYTE
*
data
;
if
(
winetest_debug
>
1
)
trace
(
"%u: %04x: IWMReaderCallback::OnSample(output %u, time %I64u, duration %I64u, flags %#x)
\n
"
,
...
...
@@ -1196,6 +1206,10 @@ static HRESULT WINAPI callback_OnSample(IWMReaderCallback *iface, DWORD output,
hr
=
INSSBuffer_GetBufferAndLength
(
sample
,
&
data
,
&
size
);
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
hr
=
INSSBuffer_GetBuffer
(
sample
,
&
data2
);
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
ok
(
data2
==
data
,
"Data pointers didn't match.
\n
"
);
ok
(
callback
->
got_started
>
0
,
"Got %u WMT_STARTED callbacks.
\n
"
,
callback
->
got_started
);
ok
(
!
callback
->
got_eof
,
"Got %u WMT_EOF callbacks.
\n
"
,
callback
->
got_eof
);
++
callback
->
got_sample
;
...
...
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