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
e121a552
Commit
e121a552
authored
Mar 25, 2020
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 25, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mf: Add a helper to trace timestamp arguments.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
914bb084
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
8 deletions
+31
-8
main.c
dlls/mf/main.c
+1
-1
mf_private.h
dlls/mf/mf_private.h
+21
-0
samplegrabber.c
dlls/mf/samplegrabber.c
+5
-5
session.c
dlls/mf/session.c
+4
-2
No files found.
dlls/mf/main.c
View file @
e121a552
...
...
@@ -1894,7 +1894,7 @@ static HRESULT WINAPI sample_copier_transform_GetOutputStatus(IMFTransform *ifac
static
HRESULT
WINAPI
sample_copier_transform_SetOutputBounds
(
IMFTransform
*
iface
,
LONGLONG
lower
,
LONGLONG
upper
)
{
TRACE
(
"%p, %s, %s.
\n
"
,
iface
,
wine_dbgstr_longlong
(
lower
),
wine_dbgstr_longlong
(
upper
));
TRACE
(
"%p, %s, %s.
\n
"
,
iface
,
debugstr_time
(
lower
),
debugstr_time
(
upper
));
return
E_NOTIMPL
;
}
...
...
dlls/mf/mf_private.h
View file @
e121a552
...
...
@@ -19,6 +19,7 @@
#include "mfidl.h"
#include "wine/heap.h"
#include "wine/debug.h"
static
inline
BOOL
mf_array_reserve
(
void
**
elements
,
size_t
*
capacity
,
size_t
count
,
size_t
size
)
{
...
...
@@ -55,3 +56,23 @@ struct activate_funcs
};
HRESULT
create_activation_object
(
void
*
context
,
const
struct
activate_funcs
*
funcs
,
IMFActivate
**
ret
)
DECLSPEC_HIDDEN
;
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
);
}
dlls/mf/samplegrabber.c
View file @
e121a552
...
...
@@ -1151,7 +1151,7 @@ static HRESULT WINAPI sample_grabber_clock_sink_OnClockStart(IMFClockStateSink *
{
struct
sample_grabber
*
grabber
=
impl_from_IMFClockStateSink
(
iface
);
TRACE
(
"%p, %s, %s.
\n
"
,
iface
,
wine_dbgstr_longlong
(
systime
),
wine_dbgstr_longlong
(
offset
));
TRACE
(
"%p, %s, %s.
\n
"
,
iface
,
debugstr_time
(
systime
),
debugstr_time
(
offset
));
sample_grabber_set_state
(
grabber
,
SINK_STATE_RUNNING
);
...
...
@@ -1162,7 +1162,7 @@ static HRESULT WINAPI sample_grabber_clock_sink_OnClockStop(IMFClockStateSink *i
{
struct
sample_grabber
*
grabber
=
impl_from_IMFClockStateSink
(
iface
);
TRACE
(
"%p, %s.
\n
"
,
iface
,
wine_dbgstr_longlong
(
systime
));
TRACE
(
"%p, %s.
\n
"
,
iface
,
debugstr_time
(
systime
));
sample_grabber_set_state
(
grabber
,
SINK_STATE_STOPPED
);
...
...
@@ -1173,7 +1173,7 @@ static HRESULT WINAPI sample_grabber_clock_sink_OnClockPause(IMFClockStateSink *
{
struct
sample_grabber
*
grabber
=
impl_from_IMFClockStateSink
(
iface
);
TRACE
(
"%p, %s.
\n
"
,
iface
,
wine_dbgstr_longlong
(
systime
));
TRACE
(
"%p, %s.
\n
"
,
iface
,
debugstr_time
(
systime
));
return
IMFSampleGrabberSinkCallback_OnClockPause
(
sample_grabber_get_callback
(
grabber
),
systime
);
}
...
...
@@ -1182,7 +1182,7 @@ static HRESULT WINAPI sample_grabber_clock_sink_OnClockRestart(IMFClockStateSink
{
struct
sample_grabber
*
grabber
=
impl_from_IMFClockStateSink
(
iface
);
TRACE
(
"%p, %s.
\n
"
,
iface
,
wine_dbgstr_longlong
(
systime
));
TRACE
(
"%p, %s.
\n
"
,
iface
,
debugstr_time
(
systime
));
sample_grabber_set_state
(
grabber
,
SINK_STATE_RUNNING
);
...
...
@@ -1193,7 +1193,7 @@ static HRESULT WINAPI sample_grabber_clock_sink_OnClockSetRate(IMFClockStateSink
{
struct
sample_grabber
*
grabber
=
impl_from_IMFClockStateSink
(
iface
);
TRACE
(
"%p, %s, %f.
\n
"
,
iface
,
wine_dbgstr_longlong
(
systime
),
rate
);
TRACE
(
"%p, %s, %f.
\n
"
,
iface
,
debugstr_time
(
systime
),
rate
);
return
IMFSampleGrabberSinkCallback_OnClockSetRate
(
sample_grabber_get_callback
(
grabber
),
systime
,
rate
);
}
...
...
dlls/mf/session.c
View file @
e121a552
...
...
@@ -31,6 +31,8 @@
#include "wine/heap.h"
#include "wine/list.h"
#include "mf_private.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
mfplat
);
enum
session_command
...
...
@@ -3547,7 +3549,7 @@ static HRESULT WINAPI present_clock_Start(IMFPresentationClock *iface, LONGLONG
struct
clock_state_change_param
param
=
{{
0
}};
HRESULT
hr
;
TRACE
(
"%p, %s.
\n
"
,
iface
,
wine_dbgstr_longlong
(
start_offset
));
TRACE
(
"%p, %s.
\n
"
,
iface
,
debugstr_time
(
start_offset
));
EnterCriticalSection
(
&
clock
->
cs
);
clock
->
start_offset
=
param
.
u
.
offset
=
start_offset
;
...
...
@@ -3772,7 +3774,7 @@ static HRESULT WINAPI present_clock_timer_SetTimer(IMFTimer *iface, DWORD flags,
struct
clock_timer
*
clock_timer
;
HRESULT
hr
;
TRACE
(
"%p, %#x, %s, %p, %p, %p.
\n
"
,
iface
,
flags
,
wine_dbgstr_longlong
(
time
),
callback
,
state
,
cancel_key
);
TRACE
(
"%p, %#x, %s, %p, %p, %p.
\n
"
,
iface
,
flags
,
debugstr_time
(
time
),
callback
,
state
,
cancel_key
);
if
(
!
(
clock_timer
=
heap_alloc_zero
(
sizeof
(
*
clock_timer
))))
return
E_OUTOFMEMORY
;
...
...
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