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
d3c5b2c4
Commit
d3c5b2c4
authored
Mar 24, 2012
by
Aric Stewart
Committed by
Alexandre Julliard
Mar 26, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
strmbase: COM cleanup for cleanup SourceSeeking.
parent
eb5d8b96
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
27 additions
and
22 deletions
+27
-22
avisplit.c
dlls/quartz/avisplit.c
+1
-1
mpegsplit.c
dlls/quartz/mpegsplit.c
+1
-1
parser.c
dlls/quartz/parser.c
+1
-1
waveparser.c
dlls/quartz/waveparser.c
+1
-1
seeking.c
dlls/strmbase/seeking.c
+20
-15
gstdemux.c
dlls/winegstreamer/gstdemux.c
+1
-1
qtsplitter.c
dlls/wineqtdecoder/qtsplitter.c
+1
-1
strmbase.h
include/wine/strmbase.h
+1
-1
No files found.
dlls/quartz/avisplit.c
View file @
d3c5b2c4
...
...
@@ -102,7 +102,7 @@ struct thread_args {
static
inline
AVISplitterImpl
*
impl_from_IMediaSeeking
(
IMediaSeeking
*
iface
)
{
return
(
AVISplitterImpl
*
)((
char
*
)
iface
-
FIELD_OFFSET
(
AVISplitterImpl
,
Parser
.
sourceSeeking
.
lpVtbl
)
);
return
CONTAINING_RECORD
(
iface
,
AVISplitterImpl
,
Parser
.
sourceSeeking
.
IMediaSeeking_iface
);
}
/* The threading stuff cries for an explanation
...
...
dlls/quartz/mpegsplit.c
View file @
d3c5b2c4
...
...
@@ -78,7 +78,7 @@ typedef struct MPEGSplitterImpl
static
inline
MPEGSplitterImpl
*
impl_from_IMediaSeeking
(
IMediaSeeking
*
iface
)
{
return
(
MPEGSplitterImpl
*
)((
char
*
)
iface
-
FIELD_OFFSET
(
MPEGSplitterImpl
,
Parser
.
sourceSeeking
.
lpVtbl
)
);
return
CONTAINING_RECORD
(
iface
,
MPEGSplitterImpl
,
Parser
.
sourceSeeking
.
IMediaSeeking_iface
);
}
static
int
MPEGSplitter_head_check
(
const
BYTE
*
header
)
...
...
dlls/quartz/parser.c
View file @
d3c5b2c4
...
...
@@ -50,7 +50,7 @@ static HRESULT WINAPI Parser_OutputPin_BreakConnect(BaseOutputPin *This);
static
inline
ParserImpl
*
impl_from_IMediaSeeking
(
IMediaSeeking
*
iface
)
{
return
(
ParserImpl
*
)((
char
*
)
iface
-
FIELD_OFFSET
(
ParserImpl
,
sourceSeeking
.
lpVtbl
)
);
return
CONTAINING_RECORD
(
iface
,
ParserImpl
,
sourceSeeking
.
IMediaSeeking_iface
);
}
/* FIXME: WRONG */
...
...
dlls/quartz/waveparser.c
View file @
d3c5b2c4
...
...
@@ -50,7 +50,7 @@ typedef struct WAVEParserImpl
static
inline
WAVEParserImpl
*
impl_from_IMediaSeeking
(
IMediaSeeking
*
iface
)
{
return
(
WAVEParserImpl
*
)((
char
*
)
iface
-
FIELD_OFFSET
(
WAVEParserImpl
,
Parser
.
sourceSeeking
.
lpVtbl
)
);
return
CONTAINING_RECORD
(
iface
,
WAVEParserImpl
,
Parser
.
sourceSeeking
.
IMediaSeeking_iface
);
}
static
LONGLONG
bytepos_to_duration
(
WAVEParserImpl
*
This
,
LONGLONG
bytepos
)
...
...
dlls/strmbase/seeking.c
View file @
d3c5b2c4
...
...
@@ -32,11 +32,16 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
strmbase
);
static
inline
SourceSeeking
*
impl_from_IMediaSeeking
(
IMediaSeeking
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
SourceSeeking
,
IMediaSeeking_iface
);
}
HRESULT
SourceSeeking_Init
(
SourceSeeking
*
pSeeking
,
const
IMediaSeekingVtbl
*
Vtbl
,
SourceSeeking_ChangeStop
fnChangeStop
,
SourceSeeking_ChangeStart
fnChangeStart
,
SourceSeeking_ChangeRate
fnChangeRate
,
PCRITICAL_SECTION
crit_sect
)
{
assert
(
fnChangeStop
&&
fnChangeStart
&&
fnChangeRate
);
pSeeking
->
lpVtbl
=
Vtbl
;
pSeeking
->
IMediaSeeking_iface
.
lpVtbl
=
Vtbl
;
pSeeking
->
refCount
=
1
;
pSeeking
->
fnChangeRate
=
fnChangeRate
;
pSeeking
->
fnChangeStop
=
fnChangeStop
;
...
...
@@ -57,7 +62,7 @@ HRESULT SourceSeeking_Init(SourceSeeking *pSeeking, const IMediaSeekingVtbl *Vtb
HRESULT
WINAPI
SourceSeekingImpl_GetCapabilities
(
IMediaSeeking
*
iface
,
DWORD
*
pCapabilities
)
{
SourceSeeking
*
This
=
(
SourceSeeking
*
)
iface
;
SourceSeeking
*
This
=
impl_from_IMediaSeeking
(
iface
)
;
TRACE
(
"(%p)
\n
"
,
pCapabilities
);
...
...
@@ -68,7 +73,7 @@ HRESULT WINAPI SourceSeekingImpl_GetCapabilities(IMediaSeeking * iface, DWORD *
HRESULT
WINAPI
SourceSeekingImpl_CheckCapabilities
(
IMediaSeeking
*
iface
,
DWORD
*
pCapabilities
)
{
SourceSeeking
*
This
=
(
SourceSeeking
*
)
iface
;
SourceSeeking
*
This
=
impl_from_IMediaSeeking
(
iface
)
;
HRESULT
hr
;
DWORD
dwCommonCaps
;
...
...
@@ -104,7 +109,7 @@ HRESULT WINAPI SourceSeekingImpl_QueryPreferredFormat(IMediaSeeking * iface, GUI
HRESULT
WINAPI
SourceSeekingImpl_GetTimeFormat
(
IMediaSeeking
*
iface
,
GUID
*
pFormat
)
{
SourceSeeking
*
This
=
(
SourceSeeking
*
)
iface
;
SourceSeeking
*
This
=
impl_from_IMediaSeeking
(
iface
)
;
TRACE
(
"(%s)
\n
"
,
debugstr_guid
(
pFormat
));
EnterCriticalSection
(
This
->
crst
);
...
...
@@ -116,7 +121,7 @@ HRESULT WINAPI SourceSeekingImpl_GetTimeFormat(IMediaSeeking * iface, GUID * pFo
HRESULT
WINAPI
SourceSeekingImpl_IsUsingTimeFormat
(
IMediaSeeking
*
iface
,
const
GUID
*
pFormat
)
{
SourceSeeking
*
This
=
(
SourceSeeking
*
)
iface
;
SourceSeeking
*
This
=
impl_from_IMediaSeeking
(
iface
)
;
HRESULT
hr
=
S_OK
;
TRACE
(
"(%s)
\n
"
,
debugstr_guid
(
pFormat
));
...
...
@@ -131,7 +136,7 @@ HRESULT WINAPI SourceSeekingImpl_IsUsingTimeFormat(IMediaSeeking * iface, const
HRESULT
WINAPI
SourceSeekingImpl_SetTimeFormat
(
IMediaSeeking
*
iface
,
const
GUID
*
pFormat
)
{
SourceSeeking
*
This
=
(
SourceSeeking
*
)
iface
;
SourceSeeking
*
This
=
impl_from_IMediaSeeking
(
iface
)
;
TRACE
(
"%p %s
\n
"
,
This
,
debugstr_guid
(
pFormat
));
return
(
IsEqualIID
(
pFormat
,
&
TIME_FORMAT_MEDIA_TIME
)
?
S_OK
:
E_INVALIDARG
);
}
...
...
@@ -139,7 +144,7 @@ HRESULT WINAPI SourceSeekingImpl_SetTimeFormat(IMediaSeeking * iface, const GUID
HRESULT
WINAPI
SourceSeekingImpl_GetDuration
(
IMediaSeeking
*
iface
,
LONGLONG
*
pDuration
)
{
SourceSeeking
*
This
=
(
SourceSeeking
*
)
iface
;
SourceSeeking
*
This
=
impl_from_IMediaSeeking
(
iface
)
;
TRACE
(
"(%p)
\n
"
,
pDuration
);
...
...
@@ -152,7 +157,7 @@ HRESULT WINAPI SourceSeekingImpl_GetDuration(IMediaSeeking * iface, LONGLONG * p
HRESULT
WINAPI
SourceSeekingImpl_GetStopPosition
(
IMediaSeeking
*
iface
,
LONGLONG
*
pStop
)
{
SourceSeeking
*
This
=
(
SourceSeeking
*
)
iface
;
SourceSeeking
*
This
=
impl_from_IMediaSeeking
(
iface
)
;
TRACE
(
"(%p)
\n
"
,
pStop
);
...
...
@@ -166,7 +171,7 @@ HRESULT WINAPI SourceSeekingImpl_GetStopPosition(IMediaSeeking * iface, LONGLONG
/* FIXME: Make use of the info the filter should expose */
HRESULT
WINAPI
SourceSeekingImpl_GetCurrentPosition
(
IMediaSeeking
*
iface
,
LONGLONG
*
pCurrent
)
{
SourceSeeking
*
This
=
(
SourceSeeking
*
)
iface
;
SourceSeeking
*
This
=
impl_from_IMediaSeeking
(
iface
)
;
TRACE
(
"(%p)
\n
"
,
pCurrent
);
...
...
@@ -179,7 +184,7 @@ HRESULT WINAPI SourceSeekingImpl_GetCurrentPosition(IMediaSeeking * iface, LONGL
HRESULT
WINAPI
SourceSeekingImpl_ConvertTimeFormat
(
IMediaSeeking
*
iface
,
LONGLONG
*
pTarget
,
const
GUID
*
pTargetFormat
,
LONGLONG
Source
,
const
GUID
*
pSourceFormat
)
{
SourceSeeking
*
This
=
(
SourceSeeking
*
)
iface
;
SourceSeeking
*
This
=
impl_from_IMediaSeeking
(
iface
)
;
if
(
!
pTargetFormat
)
pTargetFormat
=
&
This
->
timeformat
;
if
(
!
pSourceFormat
)
...
...
@@ -212,7 +217,7 @@ static inline LONGLONG Adjust(LONGLONG value, const LONGLONG * pModifier, DWORD
HRESULT
WINAPI
SourceSeekingImpl_SetPositions
(
IMediaSeeking
*
iface
,
LONGLONG
*
pCurrent
,
DWORD
dwCurrentFlags
,
LONGLONG
*
pStop
,
DWORD
dwStopFlags
)
{
SourceSeeking
*
This
=
(
SourceSeeking
*
)
iface
;
SourceSeeking
*
This
=
impl_from_IMediaSeeking
(
iface
)
;
BOOL
bChangeCurrent
=
FALSE
,
bChangeStop
=
FALSE
;
LONGLONG
llNewCurrent
,
llNewStop
;
...
...
@@ -248,7 +253,7 @@ HRESULT WINAPI SourceSeekingImpl_SetPositions(IMediaSeeking * iface, LONGLONG *
HRESULT
WINAPI
SourceSeekingImpl_GetPositions
(
IMediaSeeking
*
iface
,
LONGLONG
*
pCurrent
,
LONGLONG
*
pStop
)
{
SourceSeeking
*
This
=
(
SourceSeeking
*
)
iface
;
SourceSeeking
*
This
=
impl_from_IMediaSeeking
(
iface
)
;
TRACE
(
"(%p, %p)
\n
"
,
pCurrent
,
pStop
);
...
...
@@ -262,7 +267,7 @@ HRESULT WINAPI SourceSeekingImpl_GetPositions(IMediaSeeking * iface, LONGLONG *
HRESULT
WINAPI
SourceSeekingImpl_GetAvailable
(
IMediaSeeking
*
iface
,
LONGLONG
*
pEarliest
,
LONGLONG
*
pLatest
)
{
SourceSeeking
*
This
=
(
SourceSeeking
*
)
iface
;
SourceSeeking
*
This
=
impl_from_IMediaSeeking
(
iface
)
;
TRACE
(
"(%p, %p)
\n
"
,
pEarliest
,
pLatest
);
...
...
@@ -276,7 +281,7 @@ HRESULT WINAPI SourceSeekingImpl_GetAvailable(IMediaSeeking * iface, LONGLONG *
HRESULT
WINAPI
SourceSeekingImpl_SetRate
(
IMediaSeeking
*
iface
,
double
dRate
)
{
SourceSeeking
*
This
=
(
SourceSeeking
*
)
iface
;
SourceSeeking
*
This
=
impl_from_IMediaSeeking
(
iface
)
;
BOOL
bChangeRate
=
(
dRate
!=
This
->
dRate
);
HRESULT
hr
=
S_OK
;
...
...
@@ -299,7 +304,7 @@ HRESULT WINAPI SourceSeekingImpl_SetRate(IMediaSeeking * iface, double dRate)
HRESULT
WINAPI
SourceSeekingImpl_GetRate
(
IMediaSeeking
*
iface
,
double
*
dRate
)
{
SourceSeeking
*
This
=
(
SourceSeeking
*
)
iface
;
SourceSeeking
*
This
=
impl_from_IMediaSeeking
(
iface
)
;
TRACE
(
"(%p)
\n
"
,
dRate
);
...
...
dlls/winegstreamer/gstdemux.c
View file @
d3c5b2c4
...
...
@@ -998,7 +998,7 @@ static HRESULT GST_Connect(GSTInPin *pPin, IPin *pConnectPin, ALLOCATOR_PROPERTI
}
static
inline
GSTOutPin
*
impl_from_IMediaSeeking
(
IMediaSeeking
*
iface
)
{
return
(
GSTOutPin
*
)((
char
*
)
iface
-
FIELD_OFFSET
(
GSTOutPin
,
seek
.
lpVtbl
)
);
return
CONTAINING_RECORD
(
iface
,
GSTOutPin
,
seek
.
IMediaSeeking_iface
);
}
static
IPin
*
WINAPI
GST_GetPin
(
BaseFilter
*
iface
,
int
pos
)
...
...
dlls/wineqtdecoder/qtsplitter.c
View file @
d3c5b2c4
...
...
@@ -185,7 +185,7 @@ static HRESULT WINAPI QTSplitter_ChangeRate(IMediaSeeking *iface);
static
inline
QTSplitter
*
impl_from_IMediaSeeking
(
IMediaSeeking
*
iface
)
{
return
(
QTSplitter
*
)((
char
*
)
iface
-
FIELD_OFFSET
(
QTSplitter
,
sourceSeeking
.
lpVtbl
)
);
return
CONTAINING_RECORD
(
iface
,
QTSplitter
,
sourceSeeking
.
IMediaSeeking_iface
);
}
/*
...
...
include/wine/strmbase.h
View file @
d3c5b2c4
...
...
@@ -287,7 +287,7 @@ typedef HRESULT (WINAPI *SourceSeeking_ChangeStop)(IMediaSeeking *iface);
typedef
struct
SourceSeeking
{
const
IMediaSeekingVtbl
*
lpVtbl
;
IMediaSeeking
IMediaSeeking_iface
;
ULONG
refCount
;
SourceSeeking_ChangeStop
fnChangeStop
;
...
...
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