Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
1105d0ba
Commit
1105d0ba
authored
Jul 05, 2018
by
Zebediah Figura
Committed by
Alexandre Julliard
Jul 05, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Inline copying pin info and update comment.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
567be5b6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
15 deletions
+8
-15
pin.c
dlls/quartz/pin.c
+8
-15
No files found.
dlls/quartz/pin.c
View file @
1105d0ba
...
...
@@ -138,18 +138,6 @@ out:
return
hr
;
}
static
void
Copy_PinInfo
(
PIN_INFO
*
pDest
,
const
PIN_INFO
*
pSrc
)
{
/* Tempting to just do a memcpy, but the name field is
128 characters long! We will probably never exceed 10
most of the time, so we are better off copying
each field manually */
strcpyW
(
pDest
->
achName
,
pSrc
->
achName
);
pDest
->
dir
=
pSrc
->
dir
;
pDest
->
pFilter
=
pSrc
->
pFilter
;
}
static
HRESULT
deliver_endofstream
(
IPin
*
pin
,
LPVOID
unused
)
{
return
IPin_EndOfStream
(
pin
);
...
...
@@ -179,15 +167,20 @@ static HRESULT deliver_newsegment(IPin *pin, LPVOID data)
/*** PullPin implementation ***/
static
HRESULT
PullPin_Init
(
const
IPinVtbl
*
PullPin_Vtbl
,
const
PIN_INFO
*
pPinInfo
,
SAMPLEPROC_PULL
pSampleProc
,
LPVOID
pUserData
,
QUERYACCEPTPROC
pQueryAccept
,
CLEANUPPROC
pCleanUp
,
REQUESTPROC
pCustomRequest
,
STOPPROCESSPROC
pDone
,
LPCRITICAL_SECTION
pCritSec
,
PullPin
*
pPinImpl
)
static
HRESULT
PullPin_Init
(
const
IPinVtbl
*
PullPin_Vtbl
,
const
PIN_INFO
*
info
,
SAMPLEPROC_PULL
pSampleProc
,
void
*
pUserData
,
QUERYACCEPTPROC
pQueryAccept
,
CLEANUPPROC
pCleanUp
,
REQUESTPROC
pCustomRequest
,
STOPPROCESSPROC
pDone
,
LPCRITICAL_SECTION
pCritSec
,
PullPin
*
pPinImpl
)
{
/* Common attributes */
pPinImpl
->
pin
.
IPin_iface
.
lpVtbl
=
PullPin_Vtbl
;
pPinImpl
->
pin
.
refCount
=
1
;
pPinImpl
->
pin
.
pConnectedTo
=
NULL
;
pPinImpl
->
pin
.
pCritSec
=
pCritSec
;
Copy_PinInfo
(
&
pPinImpl
->
pin
.
pinInfo
,
pPinInfo
);
/* avoid copying uninitialized data */
strcpyW
(
pPinImpl
->
pin
.
pinInfo
.
achName
,
info
->
achName
);
pPinImpl
->
pin
.
pinInfo
.
dir
=
info
->
dir
;
pPinImpl
->
pin
.
pinInfo
.
pFilter
=
info
->
pFilter
;
ZeroMemory
(
&
pPinImpl
->
pin
.
mtCurrent
,
sizeof
(
AM_MEDIA_TYPE
));
/* Input pin attributes */
...
...
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