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
649e2948
Commit
649e2948
authored
Aug 03, 2019
by
Gijs Vermeulen
Committed by
Alexandre Julliard
Aug 05, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wmp: Improve playlist creation.
Signed-off-by:
Gijs Vermeulen
<
gijsvrm@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
2477aa7a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
7 deletions
+16
-7
player.c
dlls/wmp/player.c
+15
-4
oleobj.c
dlls/wmp/tests/oleobj.c
+1
-3
No files found.
dlls/wmp/player.c
View file @
649e2948
...
...
@@ -286,11 +286,18 @@ static HRESULT WINAPI WMPPlayer4_get_network(IWMPPlayer4 *iface, IWMPNetwork **p
return
S_OK
;
}
static
HRESULT
WINAPI
WMPPlayer4_get_currentPlaylist
(
IWMPPlayer4
*
iface
,
IWMPPlaylist
**
p
pPL
)
static
HRESULT
WINAPI
WMPPlayer4_get_currentPlaylist
(
IWMPPlayer4
*
iface
,
IWMPPlaylist
**
p
laylist
)
{
WindowsMediaPlayer
*
This
=
impl_from_IWMPPlayer4
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
ppPL
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
playlist
);
*
playlist
=
NULL
;
if
(
This
->
playlist
==
NULL
)
return
S_FALSE
;
return
create_playlist
(
This
->
playlist
->
name
,
This
->
playlist
->
url
,
playlist
);
}
static
HRESULT
WINAPI
WMPPlayer4_put_currentPlaylist
(
IWMPPlayer4
*
iface
,
IWMPPlaylist
*
pPL
)
...
...
@@ -2197,6 +2204,8 @@ void unregister_player_msg_class(void) {
BOOL
init_player
(
WindowsMediaPlayer
*
wmp
)
{
IWMPPlaylist
*
playlist
;
BSTR
name
;
static
const
WCHAR
nameW
[]
=
{
'P'
,
'l'
,
'a'
,
'y'
,
'l'
,
'i'
,
's'
,
't'
,
'1'
,
0
};
InitOnceExecuteOnce
(
&
class_init_once
,
register_player_msg_class
,
NULL
,
NULL
);
wmp
->
msg_window
=
CreateWindowW
(
MAKEINTRESOURCEW
(
player_msg_class
),
NULL
,
0
,
0
,
...
...
@@ -2216,10 +2225,12 @@ BOOL init_player(WindowsMediaPlayer *wmp)
wmp
->
IWMPControls_iface
.
lpVtbl
=
&
WMPControlsVtbl
;
wmp
->
IWMPNetwork_iface
.
lpVtbl
=
&
WMPNetworkVtbl
;
if
(
SUCCEEDED
(
create_playlist
(
NULL
,
NULL
,
&
playlist
)))
name
=
SysAllocString
(
nameW
);
if
(
SUCCEEDED
(
create_playlist
(
name
,
NULL
,
&
playlist
)))
wmp
->
playlist
=
unsafe_impl_from_IWMPPlaylist
(
playlist
);
else
wmp
->
playlist
=
NULL
;
SysFreeString
(
name
);
wmp
->
invoke_urls
=
VARIANT_TRUE
;
wmp
->
auto_start
=
VARIANT_TRUE
;
...
...
dlls/wmp/tests/oleobj.c
View file @
649e2948
...
...
@@ -945,12 +945,10 @@ static void test_wmp_ifaces(IOleObject *oleobj)
playlist
=
NULL
;
hres
=
IWMPPlayer4_get_currentPlaylist
(
player4
,
&
playlist
);
todo_wine
{
ok
(
hres
==
S_OK
,
"IWMPPlayer4_get_currentPlaylist failed: %08x
\n
"
,
hres
);
ok
(
playlist
!=
NULL
,
"playlist != NULL
\n
"
);
}
if
(
playlist
)
IWMPPlaylist_Release
(
playlist
);
IWMPPlaylist_Release
(
playlist
);
media
=
NULL
;
hres
=
IWMPPlayer4_QueryInterface
(
player4
,
&
IID_IWMPMedia
,
(
void
**
)
&
media
);
...
...
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