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
9ea8edc0
Commit
9ea8edc0
authored
Mar 25, 2020
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 25, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mfplat: Add a helper to trace timestamp arguments.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
3ac77317
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
8 deletions
+28
-8
buffer.c
dlls/mfplat/buffer.c
+3
-3
main.c
dlls/mfplat/main.c
+5
-5
mfplat_private.h
dlls/mfplat/mfplat_private.h
+20
-0
No files found.
dlls/mfplat/buffer.c
View file @
9ea8edc0
...
...
@@ -663,7 +663,7 @@ HRESULT WINAPI MFCreateMediaBufferFromMediaType(IMFMediaType *media_type, LONGLO
HRESULT
hr
;
GUID
major
;
TRACE
(
"%p, %s, %u, %u, %p.
\n
"
,
media_type
,
wine_dbgstr_longlong
(
duration
),
min_length
,
alignment
,
buffer
);
TRACE
(
"%p, %s, %u, %u, %p.
\n
"
,
media_type
,
debugstr_time
(
duration
),
min_length
,
alignment
,
buffer
);
if
(
!
media_type
)
return
E_INVALIDARG
;
...
...
@@ -1075,7 +1075,7 @@ static HRESULT WINAPI sample_SetSampleTime(IMFSample *iface, LONGLONG timestamp)
{
struct
sample
*
sample
=
impl_from_IMFSample
(
iface
);
TRACE
(
"%p, %s.
\n
"
,
iface
,
wine_dbgstr_longlong
(
timestamp
));
TRACE
(
"%p, %s.
\n
"
,
iface
,
debugstr_time
(
timestamp
));
EnterCriticalSection
(
&
sample
->
attributes
.
cs
);
sample
->
timestamp
=
timestamp
;
...
...
@@ -1106,7 +1106,7 @@ static HRESULT WINAPI sample_SetSampleDuration(IMFSample *iface, LONGLONG durati
{
struct
sample
*
sample
=
impl_from_IMFSample
(
iface
);
TRACE
(
"%p, %s.
\n
"
,
iface
,
wine_dbgstr_longlong
(
duration
));
TRACE
(
"%p, %s.
\n
"
,
iface
,
debugstr_time
(
duration
));
EnterCriticalSection
(
&
sample
->
attributes
.
cs
);
sample
->
duration
=
duration
;
...
...
dlls/mfplat/main.c
View file @
9ea8edc0
...
...
@@ -8015,7 +8015,7 @@ static HRESULT WINAPI system_time_source_sink_OnClockStart(IMFClockStateSink *if
struct
system_time_source
*
source
=
impl_from_IMFClockStateSink
(
iface
);
HRESULT
hr
;
TRACE
(
"%p, %s, %s.
\n
"
,
iface
,
wine_dbgstr_longlong
(
system_time
),
wine_dbgstr_longlong
(
start_offset
));
TRACE
(
"%p, %s, %s.
\n
"
,
iface
,
debugstr_time
(
system_time
),
debugstr_time
(
start_offset
));
EnterCriticalSection
(
&
source
->
cs
);
if
(
SUCCEEDED
(
hr
=
system_time_source_change_state
(
source
,
CLOCK_CMD_START
)))
...
...
@@ -8033,7 +8033,7 @@ static HRESULT WINAPI system_time_source_sink_OnClockStop(IMFClockStateSink *ifa
struct
system_time_source
*
source
=
impl_from_IMFClockStateSink
(
iface
);
HRESULT
hr
;
TRACE
(
"%p, %s.
\n
"
,
iface
,
wine_dbgstr_longlong
(
system_time
));
TRACE
(
"%p, %s.
\n
"
,
iface
,
debugstr_time
(
system_time
));
EnterCriticalSection
(
&
source
->
cs
);
if
(
SUCCEEDED
(
hr
=
system_time_source_change_state
(
source
,
CLOCK_CMD_STOP
)))
...
...
@@ -8048,7 +8048,7 @@ static HRESULT WINAPI system_time_source_sink_OnClockPause(IMFClockStateSink *if
struct
system_time_source
*
source
=
impl_from_IMFClockStateSink
(
iface
);
HRESULT
hr
;
TRACE
(
"%p, %s.
\n
"
,
iface
,
wine_dbgstr_longlong
(
system_time
));
TRACE
(
"%p, %s.
\n
"
,
iface
,
debugstr_time
(
system_time
));
EnterCriticalSection
(
&
source
->
cs
);
if
(
SUCCEEDED
(
hr
=
system_time_source_change_state
(
source
,
CLOCK_CMD_PAUSE
)))
...
...
@@ -8066,7 +8066,7 @@ static HRESULT WINAPI system_time_source_sink_OnClockRestart(IMFClockStateSink *
struct
system_time_source
*
source
=
impl_from_IMFClockStateSink
(
iface
);
HRESULT
hr
;
TRACE
(
"%p, %s.
\n
"
,
iface
,
wine_dbgstr_longlong
(
system_time
));
TRACE
(
"%p, %s.
\n
"
,
iface
,
debugstr_time
(
system_time
));
EnterCriticalSection
(
&
source
->
cs
);
if
(
SUCCEEDED
(
hr
=
system_time_source_change_state
(
source
,
CLOCK_CMD_RESTART
)))
...
...
@@ -8084,7 +8084,7 @@ static HRESULT WINAPI system_time_source_sink_OnClockSetRate(IMFClockStateSink *
struct
system_time_source
*
source
=
impl_from_IMFClockStateSink
(
iface
);
double
intpart
;
TRACE
(
"%p, %s, %f.
\n
"
,
iface
,
wine_dbgstr_longlong
(
system_time
),
rate
);
TRACE
(
"%p, %s, %f.
\n
"
,
iface
,
debugstr_time
(
system_time
),
rate
);
if
(
rate
==
0
.
0
f
)
return
MF_E_UNSUPPORTED_RATE
;
...
...
dlls/mfplat/mfplat_private.h
View file @
9ea8edc0
...
...
@@ -182,3 +182,23 @@ static inline const char *debugstr_fourcc(DWORD format)
return
wine_dbgstr_an
((
char
*
)
&
format
,
4
);
}
static
inline
const
char
*
debugstr_time
(
LONGLONG
time
)
{
ULONGLONG
abstime
=
time
>=
0
?
time
:
-
time
;
unsigned
int
i
=
0
,
j
=
0
;
char
buffer
[
23
],
rev
[
23
];
while
(
abstime
||
i
<=
8
)
{
buffer
[
i
++
]
=
'0'
+
(
abstime
%
10
);
abstime
/=
10
;
if
(
i
==
7
)
buffer
[
i
++
]
=
'.'
;
}
if
(
time
<
0
)
buffer
[
i
++
]
=
'-'
;
while
(
i
--
)
rev
[
j
++
]
=
buffer
[
i
];
rev
[
j
]
=
0
;
return
wine_dbg_sprintf
(
"%s"
,
rev
);
}
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