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
b82d94e4
Commit
b82d94e4
authored
Oct 10, 2005
by
Christian Costa
Committed by
Alexandre Julliard
Oct 10, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make window uses black brush for background.
Check format type of video stream.
parent
dd3d1e38
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
5 deletions
+14
-5
videorenderer.c
dlls/quartz/videorenderer.c
+14
-5
No files found.
dlls/quartz/videorenderer.c
View file @
b82d94e4
...
...
@@ -148,7 +148,7 @@ static BOOL CreateRenderingWindow(VideoRendererImpl* This)
winclass
.
hInstance
=
NULL
;
winclass
.
hIcon
=
NULL
;
winclass
.
hCursor
=
NULL
;
winclass
.
hbrBackground
=
NULL
;
winclass
.
hbrBackground
=
GetStockObject
(
BLACK_BRUSH
)
;
winclass
.
lpszMenuName
=
NULL
;
winclass
.
lpszClassName
=
"Wine ActiveMovie Class"
;
...
...
@@ -391,13 +391,22 @@ static HRESULT VideoRenderer_Sample(LPVOID iface, IMediaSample * pSample)
static
HRESULT
VideoRenderer_QueryAccept
(
LPVOID
iface
,
const
AM_MEDIA_TYPE
*
pmt
)
{
if
((
IsEqualIID
(
&
pmt
->
majortype
,
&
MEDIATYPE_Video
)
&&
IsEqualIID
(
&
pmt
->
subtype
,
&
MEDIASUBTYPE_RGB32
))
||
(
IsEqualIID
(
&
pmt
->
majortype
,
&
MEDIATYPE_Video
)
&&
IsEqualIID
(
&
pmt
->
subtype
,
&
MEDIASUBTYPE_RGB24
))
||
(
IsEqualIID
(
&
pmt
->
majortype
,
&
MEDIATYPE_Video
)
&&
IsEqualIID
(
&
pmt
->
subtype
,
&
MEDIASUBTYPE_RGB565
))
||
(
IsEqualIID
(
&
pmt
->
majortype
,
&
MEDIATYPE_Video
)
&&
IsEqualIID
(
&
pmt
->
subtype
,
&
MEDIASUBTYPE_RGB8
)))
if
(
!
IsEqualIID
(
&
pmt
->
majortype
,
&
MEDIATYPE_Video
))
return
S_FALSE
;
if
(
IsEqualIID
(
&
pmt
->
subtype
,
&
MEDIASUBTYPE_RGB32
)
||
IsEqualIID
(
&
pmt
->
subtype
,
&
MEDIASUBTYPE_RGB24
)
||
IsEqualIID
(
&
pmt
->
subtype
,
&
MEDIASUBTYPE_RGB565
)
||
IsEqualIID
(
&
pmt
->
subtype
,
&
MEDIASUBTYPE_RGB8
))
{
VideoRendererImpl
*
This
=
(
VideoRendererImpl
*
)
iface
;
VIDEOINFOHEADER
*
format
=
(
VIDEOINFOHEADER
*
)
pmt
->
pbFormat
;
if
(
!
IsEqualIID
(
&
pmt
->
formattype
,
&
FORMAT_VideoInfo
))
{
WARN
(
"Format type %s not supported
\n
"
,
debugstr_guid
(
&
pmt
->
formattype
));
return
S_FALSE
;
}
This
->
SourceRect
.
left
=
0
;
This
->
SourceRect
.
top
=
0
;
This
->
SourceRect
.
right
=
This
->
VideoWidth
=
format
->
bmiHeader
.
biWidth
;
...
...
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