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
573abf83
Commit
573abf83
authored
May 20, 2010
by
Maarten Lankhorst
Committed by
Alexandre Julliard
May 20, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mciqtz32: Handle window visibility better.
Video Window only needs to be created on play, so defer until then.
parent
02956bf7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
8 deletions
+25
-8
mciqtz.c
dlls/mciqtz32/mciqtz.c
+24
-7
mciqtz_private.h
dlls/mciqtz32/mciqtz_private.h
+1
-1
No files found.
dlls/mciqtz32/mciqtz.c
View file @
573abf83
...
...
@@ -199,19 +199,21 @@ static DWORD MCIQTZ_mciOpen(UINT wDevID, DWORD dwFlags,
DWORD
style
;
RECT
rc
=
{
0
,
0
,
0
,
0
};
IVideoWindow_put_AutoShow
(
vidwin
,
OAFALSE
);
IVideoWindow_put_Visible
(
vidwin
,
OAFALSE
);
style
=
0
;
if
(
dwFlags
&
MCI_DGV_OPEN_WS
)
style
|=
lpOpenParms
->
dwStyle
;
if
(
dwFlags
&
MCI_DGV_OPEN_PARENT
)
{
style
|=
WS_CHILD
;
IVideoWindow_put_MessageDrain
(
vidwin
,
(
OAHWND
)
lpOpenParms
->
hWndParent
);
IVideoWindow_put_WindowState
(
vidwin
,
SW_HIDE
);
IVideoWindow_put_WindowStyle
(
vidwin
,
WS_CHILD
);
IVideoWindow_put_Owner
(
vidwin
,
(
OAHWND
)
lpOpenParms
->
hWndParent
);
wma
->
parent
=
(
HWND
)
lpOpenParms
->
hWndParent
;
}
IVideoWindow_put_WindowStyle
(
vidwin
,
style
);
else
if
(
style
)
IVideoWindow_put_WindowStyle
(
vidwin
,
style
);
IBasicVideo_GetVideoSize
(
vidbasic
,
&
rc
.
right
,
&
rc
.
bottom
);
IVideoWindow_SetWindowPosition
(
vidwin
,
rc
.
left
,
rc
.
top
,
rc
.
right
,
rc
.
bottom
);
IVideoWindow_put_Visible
(
vidwin
,
OATRUE
);
IBasicVideo_Release
(
vidbasic
);
}
if
(
vidwin
)
...
...
@@ -284,7 +286,14 @@ static DWORD MCIQTZ_mciPlay(UINT wDevID, DWORD dwFlags, LPMCI_PLAY_PARMS lpParms
return
MCIERR_INTERNAL
;
}
wma
->
started
=
TRUE
;
if
(
!
wma
->
parent
)
{
IVideoWindow
*
vidwin
;
IFilterGraph2_QueryInterface
(
wma
->
pgraph
,
&
IID_IVideoWindow
,
(
void
**
)
&
vidwin
);
if
(
vidwin
)
{
IVideoWindow_put_Visible
(
vidwin
,
OATRUE
);
IVideoWindow_Release
(
vidwin
);
}
}
return
0
;
}
...
...
@@ -358,7 +367,7 @@ static DWORD MCIQTZ_mciStop(UINT wDevID, DWORD dwFlags, LPMCI_GENERIC_PARMS lpPa
if
(
!
wma
)
return
MCIERR_INVALID_DEVICE_ID
;
if
(
!
wma
->
start
ed
)
if
(
!
wma
->
open
ed
)
return
0
;
hr
=
IMediaControl_Stop
(
wma
->
pmctrl
);
...
...
@@ -367,7 +376,14 @@ static DWORD MCIQTZ_mciStop(UINT wDevID, DWORD dwFlags, LPMCI_GENERIC_PARMS lpPa
return
MCIERR_INTERNAL
;
}
wma
->
started
=
FALSE
;
if
(
!
wma
->
parent
)
{
IVideoWindow
*
vidwin
;
IFilterGraph2_QueryInterface
(
wma
->
pgraph
,
&
IID_IVideoWindow
,
(
void
**
)
&
vidwin
);
if
(
vidwin
)
{
IVideoWindow_put_Visible
(
vidwin
,
OAFALSE
);
IVideoWindow_Release
(
vidwin
);
}
}
return
0
;
}
...
...
@@ -793,7 +809,8 @@ out:
if
(
vidbasic
)
IBasicVideo_Release
(
vidbasic
);
if
(
vidwin
)
{
IVideoWindow_put_Visible
(
vidwin
,
OATRUE
);
if
(
wma
->
parent
)
IVideoWindow_put_Visible
(
vidwin
,
OATRUE
);
IVideoWindow_Release
(
vidwin
);
}
}
...
...
dlls/mciqtz32/mciqtz_private.h
View file @
573abf83
...
...
@@ -31,9 +31,9 @@ typedef struct {
BOOL
uninit
;
IGraphBuilder
*
pgraph
;
IMediaControl
*
pmctrl
;
BOOL
started
;
DWORD
time_format
;
UINT
command_table
;
HWND
parent
;
}
WINE_MCIQTZ
;
#endif
/* __WINE_PRIVATE_MCIQTZ_H */
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