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
fa38a7e3
Commit
fa38a7e3
authored
Jul 28, 2008
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Jul 29, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Trace the iface pointer in the memory allocator.
parent
668be5c7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
17 deletions
+17
-17
memallocator.c
dlls/quartz/memallocator.c
+17
-17
No files found.
dlls/quartz/memallocator.c
View file @
fa38a7e3
...
...
@@ -486,7 +486,7 @@ static HRESULT WINAPI StdMediaSample2_GetPointer(IMediaSample2 * iface, BYTE **
{
StdMediaSample2
*
This
=
(
StdMediaSample2
*
)
iface
;
TRACE
(
"(%p)
\n
"
,
ppBuffer
);
TRACE
(
"(%p)
->(%p)
\n
"
,
iface
,
ppBuffer
);
*
ppBuffer
=
This
->
props
.
pbBuffer
;
...
...
@@ -513,7 +513,7 @@ static HRESULT WINAPI StdMediaSample2_GetTime(IMediaSample2 * iface, REFERENCE_T
HRESULT
hr
;
StdMediaSample2
*
This
=
(
StdMediaSample2
*
)
iface
;
TRACE
(
"(%p
, %p)
\n
"
,
pStart
,
pEnd
);
TRACE
(
"(%p
)->(%p, %p)
\n
"
,
iface
,
pStart
,
pEnd
);
if
(
!
(
This
->
props
.
dwSampleFlags
&
AM_SAMPLE_TIMEVALID
))
hr
=
VFW_E_SAMPLE_TIME_NOT_SET
;
...
...
@@ -539,7 +539,7 @@ static HRESULT WINAPI StdMediaSample2_SetTime(IMediaSample2 * iface, REFERENCE_T
{
StdMediaSample2
*
This
=
(
StdMediaSample2
*
)
iface
;
TRACE
(
"(%p
, %p)
\n
"
,
pStart
,
pEnd
);
TRACE
(
"(%p
)->(%p, %p)
\n
"
,
iface
,
pStart
,
pEnd
);
if
(
pStart
)
{
...
...
@@ -564,7 +564,7 @@ static HRESULT WINAPI StdMediaSample2_IsSyncPoint(IMediaSample2 * iface)
{
StdMediaSample2
*
This
=
(
StdMediaSample2
*
)
iface
;
TRACE
(
"(
)
\n
"
);
TRACE
(
"(
%p)->()
\n
"
,
iface
);
return
(
This
->
props
.
dwSampleFlags
&
AM_SAMPLE_SPLICEPOINT
)
?
S_OK
:
S_FALSE
;
}
...
...
@@ -573,7 +573,7 @@ static HRESULT WINAPI StdMediaSample2_SetSyncPoint(IMediaSample2 * iface, BOOL b
{
StdMediaSample2
*
This
=
(
StdMediaSample2
*
)
iface
;
TRACE
(
"(%
s)
\n
"
,
bIsSyncPoint
?
"TRUE"
:
"FALSE"
);
TRACE
(
"(%
p)->(%s)
\n
"
,
iface
,
bIsSyncPoint
?
"TRUE"
:
"FALSE"
);
if
(
bIsSyncPoint
)
This
->
props
.
dwSampleFlags
|=
AM_SAMPLE_SPLICEPOINT
;
...
...
@@ -587,7 +587,7 @@ static HRESULT WINAPI StdMediaSample2_IsPreroll(IMediaSample2 * iface)
{
StdMediaSample2
*
This
=
(
StdMediaSample2
*
)
iface
;
TRACE
(
"(
)
\n
"
);
TRACE
(
"(
%p)->()
\n
"
,
iface
);
return
(
This
->
props
.
dwSampleFlags
&
AM_SAMPLE_PREROLL
)
?
S_OK
:
S_FALSE
;
}
...
...
@@ -596,7 +596,7 @@ static HRESULT WINAPI StdMediaSample2_SetPreroll(IMediaSample2 * iface, BOOL bIs
{
StdMediaSample2
*
This
=
(
StdMediaSample2
*
)
iface
;
TRACE
(
"(%
s)
\n
"
,
bIsPreroll
?
"TRUE"
:
"FALSE"
);
TRACE
(
"(%
p)->(%s)
\n
"
,
iface
,
bIsPreroll
?
"TRUE"
:
"FALSE"
);
if
(
bIsPreroll
)
This
->
props
.
dwSampleFlags
|=
AM_SAMPLE_PREROLL
;
...
...
@@ -610,7 +610,7 @@ static LONG WINAPI StdMediaSample2_GetActualDataLength(IMediaSample2 * iface)
{
StdMediaSample2
*
This
=
(
StdMediaSample2
*
)
iface
;
TRACE
(
"(
)
\n
"
);
TRACE
(
"(
%p)->()
\n
"
,
iface
);
return
This
->
props
.
lActual
;
}
...
...
@@ -619,7 +619,7 @@ static HRESULT WINAPI StdMediaSample2_SetActualDataLength(IMediaSample2 * iface,
{
StdMediaSample2
*
This
=
(
StdMediaSample2
*
)
iface
;
TRACE
(
"(%
d)
\n
"
,
len
);
TRACE
(
"(%
p)->(%d)
\n
"
,
iface
,
len
);
if
((
len
>
This
->
props
.
cbBuffer
)
||
(
len
<
0
))
{
...
...
@@ -637,7 +637,7 @@ static HRESULT WINAPI StdMediaSample2_GetMediaType(IMediaSample2 * iface, AM_MED
{
StdMediaSample2
*
This
=
(
StdMediaSample2
*
)
iface
;
TRACE
(
"(%p)
\n
"
,
ppMediaType
);
TRACE
(
"(%p)
->(%p)
\n
"
,
iface
,
ppMediaType
);
if
(
!
This
->
props
.
pMediaType
)
{
/* Make sure we return a NULL pointer (required by native Quartz dll) */
...
...
@@ -656,7 +656,7 @@ static HRESULT WINAPI StdMediaSample2_SetMediaType(IMediaSample2 * iface, AM_MED
{
StdMediaSample2
*
This
=
(
StdMediaSample2
*
)
iface
;
TRACE
(
"(%p)
\n
"
,
pMediaType
);
TRACE
(
"(%p)
->(%p)
\n
"
,
iface
,
pMediaType
);
if
(
This
->
props
.
pMediaType
)
FreeMediaType
(
This
->
props
.
pMediaType
);
...
...
@@ -670,7 +670,7 @@ static HRESULT WINAPI StdMediaSample2_IsDiscontinuity(IMediaSample2 * iface)
{
StdMediaSample2
*
This
=
(
StdMediaSample2
*
)
iface
;
TRACE
(
"(
)
\n
"
);
TRACE
(
"(
%p)->()
\n
"
,
iface
);
return
(
This
->
props
.
dwSampleFlags
&
AM_SAMPLE_DATADISCONTINUITY
)
?
S_OK
:
S_FALSE
;
}
...
...
@@ -679,7 +679,7 @@ static HRESULT WINAPI StdMediaSample2_SetDiscontinuity(IMediaSample2 * iface, BO
{
StdMediaSample2
*
This
=
(
StdMediaSample2
*
)
iface
;
TRACE
(
"(%
s)
\n
"
,
bIsDiscontinuity
?
"TRUE"
:
"FALSE"
);
TRACE
(
"(%
p)->(%s)
\n
"
,
iface
,
bIsDiscontinuity
?
"TRUE"
:
"FALSE"
);
if
(
bIsDiscontinuity
)
This
->
props
.
dwSampleFlags
|=
AM_SAMPLE_DATADISCONTINUITY
;
...
...
@@ -693,7 +693,7 @@ static HRESULT WINAPI StdMediaSample2_GetMediaTime(IMediaSample2 * iface, LONGLO
{
StdMediaSample2
*
This
=
(
StdMediaSample2
*
)
iface
;
TRACE
(
"(%p
, %p)
\n
"
,
pStart
,
pEnd
);
TRACE
(
"(%p
)->(%p, %p)
\n
"
,
iface
,
pStart
,
pEnd
);
if
(
This
->
tMediaStart
==
INVALID_MEDIA_TIME
)
return
VFW_E_MEDIA_TIME_NOT_SET
;
...
...
@@ -708,7 +708,7 @@ static HRESULT WINAPI StdMediaSample2_SetMediaTime(IMediaSample2 * iface, LONGLO
{
StdMediaSample2
*
This
=
(
StdMediaSample2
*
)
iface
;
TRACE
(
"(%p
, %p)
\n
"
,
pStart
,
pEnd
);
TRACE
(
"(%p
)->(%p, %p)
\n
"
,
iface
,
pStart
,
pEnd
);
if
(
pStart
)
This
->
tMediaStart
=
*
pStart
;
...
...
@@ -727,7 +727,7 @@ static HRESULT WINAPI StdMediaSample2_GetProperties(IMediaSample2 * iface, DWORD
{
StdMediaSample2
*
This
=
(
StdMediaSample2
*
)
iface
;
TRACE
(
"(%
d, %p)
\n
"
,
cbProperties
,
pbProperties
);
TRACE
(
"(%
p)->(%d, %p)
\n
"
,
iface
,
cbProperties
,
pbProperties
);
memcpy
(
pbProperties
,
&
This
->
props
,
min
(
cbProperties
,
sizeof
(
This
->
props
)));
...
...
@@ -738,7 +738,7 @@ static HRESULT WINAPI StdMediaSample2_SetProperties(IMediaSample2 * iface, DWORD
{
StdMediaSample2
*
This
=
(
StdMediaSample2
*
)
iface
;
TRACE
(
"(%
d, %p)
\n
"
,
cbProperties
,
pbProperties
);
TRACE
(
"(%
p)->(%d, %p)
\n
"
,
iface
,
cbProperties
,
pbProperties
);
/* NOTE: pbBuffer and cbBuffer are read-only */
memcpy
(
&
This
->
props
,
pbProperties
,
min
(
cbProperties
,
AM_SAMPLE2_PROP_SIZE_WRITABLE
));
...
...
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