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
e49e3255
Commit
e49e3255
authored
Mar 26, 2012
by
Aric Stewart
Committed by
Alexandre Julliard
Mar 27, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineqtdecoder: COM cleanup.
parent
00a40114
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
8 deletions
+18
-8
qtsplitter.c
dlls/wineqtdecoder/qtsplitter.c
+0
-0
qtvdecoder.c
dlls/wineqtdecoder/qtvdecoder.c
+18
-8
No files found.
dlls/wineqtdecoder/qtsplitter.c
View file @
e49e3255
This diff is collapsed.
Click to expand it.
dlls/wineqtdecoder/qtvdecoder.c
View file @
e49e3255
...
@@ -147,6 +147,16 @@ typedef struct QTVDecoderImpl
...
@@ -147,6 +147,16 @@ typedef struct QTVDecoderImpl
}
QTVDecoderImpl
;
}
QTVDecoderImpl
;
static
inline
QTVDecoderImpl
*
impl_from_IBaseFilter
(
IBaseFilter
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
QTVDecoderImpl
,
tf
.
filter
.
IBaseFilter_iface
);
}
static
inline
QTVDecoderImpl
*
impl_from_TransformFilter
(
TransformFilter
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
QTVDecoderImpl
,
tf
.
filter
);
}
static
const
IBaseFilterVtbl
QTVDecoder_Vtbl
;
static
const
IBaseFilterVtbl
QTVDecoder_Vtbl
;
static
void
trackingCallback
(
static
void
trackingCallback
(
...
@@ -246,7 +256,7 @@ error:
...
@@ -246,7 +256,7 @@ error:
static
HRESULT
WINAPI
QTVDecoder_StartStreaming
(
TransformFilter
*
pTransformFilter
)
static
HRESULT
WINAPI
QTVDecoder_StartStreaming
(
TransformFilter
*
pTransformFilter
)
{
{
QTVDecoderImpl
*
This
=
(
QTVDecoderImpl
*
)
pTransformFilter
;
QTVDecoderImpl
*
This
=
impl_from_TransformFilter
(
pTransformFilter
)
;
OSErr
err
=
noErr
;
OSErr
err
=
noErr
;
ICMDecompressionSessionOptionsRef
sessionOptions
=
NULL
;
ICMDecompressionSessionOptionsRef
sessionOptions
=
NULL
;
ICMDecompressionTrackingCallbackRecord
trackingCallbackRecord
;
ICMDecompressionTrackingCallbackRecord
trackingCallbackRecord
;
...
@@ -269,7 +279,7 @@ static HRESULT WINAPI QTVDecoder_StartStreaming(TransformFilter* pTransformFilte
...
@@ -269,7 +279,7 @@ static HRESULT WINAPI QTVDecoder_StartStreaming(TransformFilter* pTransformFilte
static
HRESULT
WINAPI
QTVDecoder_Receive
(
TransformFilter
*
tf
,
IMediaSample
*
pSample
)
static
HRESULT
WINAPI
QTVDecoder_Receive
(
TransformFilter
*
tf
,
IMediaSample
*
pSample
)
{
{
QTVDecoderImpl
*
This
=
(
QTVDecoderImpl
*
)
tf
;
QTVDecoderImpl
*
This
=
impl_from_TransformFilter
(
tf
)
;
HRESULT
hr
;
HRESULT
hr
;
DWORD
cbSrcStream
;
DWORD
cbSrcStream
;
LPBYTE
pbSrcStream
;
LPBYTE
pbSrcStream
;
...
@@ -322,7 +332,7 @@ error:
...
@@ -322,7 +332,7 @@ error:
static
HRESULT
WINAPI
QTVDecoder_StopStreaming
(
TransformFilter
*
pTransformFilter
)
static
HRESULT
WINAPI
QTVDecoder_StopStreaming
(
TransformFilter
*
pTransformFilter
)
{
{
QTVDecoderImpl
*
This
=
(
QTVDecoderImpl
*
)
pTransformFilter
;
QTVDecoderImpl
*
This
=
impl_from_TransformFilter
(
pTransformFilter
)
;
TRACE
(
"(%p)->()
\n
"
,
This
);
TRACE
(
"(%p)->()
\n
"
,
This
);
...
@@ -335,7 +345,7 @@ static HRESULT WINAPI QTVDecoder_StopStreaming(TransformFilter* pTransformFilter
...
@@ -335,7 +345,7 @@ static HRESULT WINAPI QTVDecoder_StopStreaming(TransformFilter* pTransformFilter
static
HRESULT
WINAPI
QTVDecoder_SetMediaType
(
TransformFilter
*
tf
,
PIN_DIRECTION
dir
,
const
AM_MEDIA_TYPE
*
pmt
)
static
HRESULT
WINAPI
QTVDecoder_SetMediaType
(
TransformFilter
*
tf
,
PIN_DIRECTION
dir
,
const
AM_MEDIA_TYPE
*
pmt
)
{
{
QTVDecoderImpl
*
This
=
(
QTVDecoderImpl
*
)
tf
;
QTVDecoderImpl
*
This
=
impl_from_TransformFilter
(
tf
)
;
HRESULT
hr
=
VFW_E_TYPE_NOT_ACCEPTED
;
HRESULT
hr
=
VFW_E_TYPE_NOT_ACCEPTED
;
OSErr
err
=
noErr
;
OSErr
err
=
noErr
;
AM_MEDIA_TYPE
*
outpmt
=
&
This
->
tf
.
pmt
;
AM_MEDIA_TYPE
*
outpmt
=
&
This
->
tf
.
pmt
;
...
@@ -464,7 +474,7 @@ failed:
...
@@ -464,7 +474,7 @@ failed:
static
HRESULT
WINAPI
QTVDecoder_BreakConnect
(
TransformFilter
*
tf
,
PIN_DIRECTION
dir
)
static
HRESULT
WINAPI
QTVDecoder_BreakConnect
(
TransformFilter
*
tf
,
PIN_DIRECTION
dir
)
{
{
QTVDecoderImpl
*
This
=
(
QTVDecoderImpl
*
)
tf
;
QTVDecoderImpl
*
This
=
impl_from_TransformFilter
(
tf
)
;
TRACE
(
"(%p)->()
\n
"
,
This
);
TRACE
(
"(%p)->()
\n
"
,
This
);
...
@@ -481,7 +491,7 @@ static HRESULT WINAPI QTVDecoder_BreakConnect(TransformFilter *tf, PIN_DIRECTION
...
@@ -481,7 +491,7 @@ static HRESULT WINAPI QTVDecoder_BreakConnect(TransformFilter *tf, PIN_DIRECTION
static
HRESULT
WINAPI
QTVDecoder_DecideBufferSize
(
TransformFilter
*
tf
,
IMemAllocator
*
pAlloc
,
ALLOCATOR_PROPERTIES
*
ppropInputRequest
)
static
HRESULT
WINAPI
QTVDecoder_DecideBufferSize
(
TransformFilter
*
tf
,
IMemAllocator
*
pAlloc
,
ALLOCATOR_PROPERTIES
*
ppropInputRequest
)
{
{
QTVDecoderImpl
*
This
=
(
QTVDecoderImpl
*
)
tf
;
QTVDecoderImpl
*
This
=
impl_from_TransformFilter
(
tf
)
;
ALLOCATOR_PROPERTIES
actual
;
ALLOCATOR_PROPERTIES
actual
;
TRACE
(
"()
\n
"
);
TRACE
(
"()
\n
"
);
...
@@ -540,7 +550,7 @@ IUnknown * CALLBACK QTVDecoder_create(IUnknown * pUnkOuter, HRESULT* phr)
...
@@ -540,7 +550,7 @@ IUnknown * CALLBACK QTVDecoder_create(IUnknown * pUnkOuter, HRESULT* phr)
ISeekingPassThru
*
passthru
;
ISeekingPassThru
*
passthru
;
hr
=
CoCreateInstance
(
&
CLSID_SeekingPassThru
,
(
IUnknown
*
)
This
,
CLSCTX_INPROC_SERVER
,
&
IID_IUnknown
,
(
void
**
)
&
This
->
seekthru_unk
);
hr
=
CoCreateInstance
(
&
CLSID_SeekingPassThru
,
(
IUnknown
*
)
This
,
CLSCTX_INPROC_SERVER
,
&
IID_IUnknown
,
(
void
**
)
&
This
->
seekthru_unk
);
IUnknown_QueryInterface
(
This
->
seekthru_unk
,
&
IID_ISeekingPassThru
,
(
void
**
)
&
passthru
);
IUnknown_QueryInterface
(
This
->
seekthru_unk
,
&
IID_ISeekingPassThru
,
(
void
**
)
&
passthru
);
ISeekingPassThru_Init
(
passthru
,
FALSE
,
(
IPin
*
)
This
->
tf
.
ppPins
[
0
]);
ISeekingPassThru_Init
(
passthru
,
FALSE
,
This
->
tf
.
ppPins
[
0
]);
ISeekingPassThru_Release
(
passthru
);
ISeekingPassThru_Release
(
passthru
);
}
}
...
@@ -551,7 +561,7 @@ IUnknown * CALLBACK QTVDecoder_create(IUnknown * pUnkOuter, HRESULT* phr)
...
@@ -551,7 +561,7 @@ IUnknown * CALLBACK QTVDecoder_create(IUnknown * pUnkOuter, HRESULT* phr)
HRESULT
WINAPI
QTVDecoder_QueryInterface
(
IBaseFilter
*
iface
,
REFIID
riid
,
LPVOID
*
ppv
)
HRESULT
WINAPI
QTVDecoder_QueryInterface
(
IBaseFilter
*
iface
,
REFIID
riid
,
LPVOID
*
ppv
)
{
{
HRESULT
hr
;
HRESULT
hr
;
QTVDecoderImpl
*
This
=
(
QTVDecoderImpl
*
)
iface
;
QTVDecoderImpl
*
This
=
impl_from_IBaseFilter
(
iface
)
;
TRACE
(
"(%p/%p)->(%s, %p)
\n
"
,
This
,
iface
,
debugstr_guid
(
riid
),
ppv
);
TRACE
(
"(%p/%p)->(%s, %p)
\n
"
,
This
,
iface
,
debugstr_guid
(
riid
),
ppv
);
if
(
IsEqualIID
(
riid
,
&
IID_IMediaSeeking
))
if
(
IsEqualIID
(
riid
,
&
IID_IMediaSeeking
))
...
...
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