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
cc3ef90d
Commit
cc3ef90d
authored
Mar 27, 2008
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Mar 28, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Change name from Start position to Current position in MediaSeeking.
parent
0929593b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
21 deletions
+19
-21
control.c
dlls/quartz/control.c
+16
-16
control_private.h
dlls/quartz/control_private.h
+3
-5
No files found.
dlls/quartz/control.c
View file @
cc3ef90d
...
...
@@ -95,23 +95,23 @@ out:
}
HRESULT
MediaSeekingImpl_Init
(
IBaseFilter
*
pUserData
,
CHANGEPROC
fnChangeStop
,
CHANGEPROC
fnChange
Star
t
,
CHANGEPROC
fnChangeRate
,
MediaSeekingImpl
*
pSeeking
,
PCRITICAL_SECTION
crit_sect
)
HRESULT
MediaSeekingImpl_Init
(
IBaseFilter
*
pUserData
,
CHANGEPROC
fnChangeStop
,
CHANGEPROC
fnChange
Curren
t
,
CHANGEPROC
fnChangeRate
,
MediaSeekingImpl
*
pSeeking
,
PCRITICAL_SECTION
crit_sect
)
{
assert
(
fnChangeStop
&&
fnChange
Star
t
&&
fnChangeRate
);
assert
(
fnChangeStop
&&
fnChange
Curren
t
&&
fnChangeRate
);
pSeeking
->
refCount
=
1
;
pSeeking
->
pUserData
=
pUserData
;
pSeeking
->
fnChangeRate
=
fnChangeRate
;
pSeeking
->
fnChangeStop
=
fnChangeStop
;
pSeeking
->
fnChange
Start
=
fnChangeStar
t
;
pSeeking
->
fnChange
Current
=
fnChangeCurren
t
;
pSeeking
->
dwCapabilities
=
AM_SEEKING_CanSeekForwards
|
AM_SEEKING_CanSeekBackwards
|
AM_SEEKING_CanSeekAbsolute
|
AM_SEEKING_CanGetStopPos
|
AM_SEEKING_CanGetDuration
;
pSeeking
->
ll
Star
t
=
0
;
pSeeking
->
ll
Curren
t
=
0
;
pSeeking
->
llStop
=
((
ULONGLONG
)
0x80000000
)
<<
32
;
pSeeking
->
llDuration
=
pSeeking
->
llStop
-
pSeeking
->
llStart
;
pSeeking
->
llDuration
=
pSeeking
->
llStop
;
pSeeking
->
dRate
=
1
.
0
;
pSeeking
->
timeformat
=
TIME_FORMAT_MEDIA_TIME
;
pSeeking
->
crst
=
crit_sect
;
...
...
@@ -306,7 +306,7 @@ HRESULT WINAPI MediaSeekingImpl_GetCurrentPosition(IMediaSeeking * iface, LONGLO
TRACE
(
"(%p)
\n
"
,
pCurrent
);
EnterCriticalSection
(
This
->
crst
);
*
pCurrent
=
This
->
ll
Star
t
;
*
pCurrent
=
This
->
ll
Curren
t
;
ForwardCmdSeek
(
This
->
pUserData
,
fwd_getcurposition
,
pCurrent
);
LeaveCriticalSection
(
This
->
crst
);
...
...
@@ -344,31 +344,31 @@ static inline LONGLONG Adjust(LONGLONG value, const LONGLONG * pModifier, DWORD
HRESULT
WINAPI
MediaSeekingImpl_SetPositions
(
IMediaSeeking
*
iface
,
LONGLONG
*
pCurrent
,
DWORD
dwCurrentFlags
,
LONGLONG
*
pStop
,
DWORD
dwStopFlags
)
{
MediaSeekingImpl
*
This
=
(
MediaSeekingImpl
*
)
iface
;
BOOL
bChange
Star
t
=
FALSE
,
bChangeStop
=
FALSE
;
LONGLONG
llNew
Star
t
,
llNewStop
;
BOOL
bChange
Curren
t
=
FALSE
,
bChangeStop
=
FALSE
;
LONGLONG
llNew
Curren
t
,
llNewStop
;
TRACE
(
"(%p, %x, %p, %x)
\n
"
,
pCurrent
,
dwCurrentFlags
,
pStop
,
dwStopFlags
);
EnterCriticalSection
(
This
->
crst
);
llNew
Start
=
Adjust
(
This
->
llStar
t
,
pCurrent
,
dwCurrentFlags
);
llNew
Current
=
Adjust
(
This
->
llCurren
t
,
pCurrent
,
dwCurrentFlags
);
llNewStop
=
Adjust
(
This
->
llStop
,
pStop
,
dwStopFlags
);
if
(
llNew
Start
!=
This
->
llStar
t
)
bChange
Star
t
=
TRUE
;
if
(
llNew
Current
!=
This
->
llCurren
t
)
bChange
Curren
t
=
TRUE
;
if
(
llNewStop
!=
This
->
llStop
)
bChangeStop
=
TRUE
;
This
->
ll
Start
=
llNewStar
t
;
This
->
ll
Current
=
llNewCurren
t
;
This
->
llStop
=
llNewStop
;
if
(
dwCurrentFlags
&
AM_SEEKING_ReturnTime
)
*
pCurrent
=
llNew
Star
t
;
*
pCurrent
=
llNew
Curren
t
;
if
(
dwStopFlags
&
AM_SEEKING_ReturnTime
)
*
pStop
=
llNewStop
;
if
(
bChange
Star
t
)
This
->
fnChange
Star
t
(
This
->
pUserData
);
if
(
bChange
Curren
t
)
This
->
fnChange
Curren
t
(
This
->
pUserData
);
if
(
bChangeStop
)
This
->
fnChangeStop
(
This
->
pUserData
);
...
...
@@ -384,7 +384,7 @@ HRESULT WINAPI MediaSeekingImpl_GetPositions(IMediaSeeking * iface, LONGLONG * p
TRACE
(
"(%p, %p)
\n
"
,
pCurrent
,
pStop
);
EnterCriticalSection
(
This
->
crst
);
*
pCurrent
=
This
->
ll
Star
t
;
*
pCurrent
=
This
->
ll
Curren
t
;
*
pStop
=
This
->
llStop
;
LeaveCriticalSection
(
This
->
crst
);
...
...
dlls/quartz/control_private.h
View file @
cc3ef90d
...
...
@@ -27,18 +27,16 @@ typedef struct MediaSeekingImpl
ULONG
refCount
;
IBaseFilter
*
pUserData
;
CHANGEPROC
fnChangeStop
;
CHANGEPROC
fnChange
Star
t
;
CHANGEPROC
fnChange
Curren
t
;
CHANGEPROC
fnChangeRate
;
DWORD
dwCapabilities
;
double
dRate
;
LONGLONG
llStart
;
LONGLONG
llStop
;
LONGLONG
llDuration
;
/* FIXME: needed? */
LONGLONG
llCurrent
,
llStop
,
llDuration
;
GUID
timeformat
;
PCRITICAL_SECTION
crst
;
}
MediaSeekingImpl
;
HRESULT
MediaSeekingImpl_Init
(
IBaseFilter
*
pUserData
,
CHANGEPROC
fnChangeStop
,
CHANGEPROC
fnChange
Star
t
,
CHANGEPROC
fnChangeRate
,
MediaSeekingImpl
*
pSeeking
,
PCRITICAL_SECTION
crit_sect
);
HRESULT
MediaSeekingImpl_Init
(
IBaseFilter
*
pUserData
,
CHANGEPROC
fnChangeStop
,
CHANGEPROC
fnChange
Curren
t
,
CHANGEPROC
fnChangeRate
,
MediaSeekingImpl
*
pSeeking
,
PCRITICAL_SECTION
crit_sect
);
HRESULT
WINAPI
MediaSeekingImpl_GetCapabilities
(
IMediaSeeking
*
iface
,
DWORD
*
pCapabilities
);
HRESULT
WINAPI
MediaSeekingImpl_CheckCapabilities
(
IMediaSeeking
*
iface
,
DWORD
*
pCapabilities
);
...
...
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