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
188992a1
Commit
188992a1
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: Implement IWMPPlaylist::get_count.
Signed-off-by:
Gijs Vermeulen
<
gijsvrm@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
649e2948
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
7 deletions
+15
-7
player.c
dlls/wmp/player.c
+13
-6
wmp_private.h
dlls/wmp/wmp_private.h
+2
-1
No files found.
dlls/wmp/player.c
View file @
188992a1
...
...
@@ -297,7 +297,7 @@ static HRESULT WINAPI WMPPlayer4_get_currentPlaylist(IWMPPlayer4 *iface, IWMPPla
if
(
This
->
playlist
==
NULL
)
return
S_FALSE
;
return
create_playlist
(
This
->
playlist
->
name
,
This
->
playlist
->
url
,
playlist
);
return
create_playlist
(
This
->
playlist
->
name
,
This
->
playlist
->
url
,
This
->
playlist
->
count
,
playlist
);
}
static
HRESULT
WINAPI
WMPPlayer4_put_currentPlaylist
(
IWMPPlayer4
*
iface
,
IWMPPlaylist
*
pPL
)
...
...
@@ -355,7 +355,8 @@ static HRESULT WINAPI WMPPlayer4_newPlaylist(IWMPPlayer4 *iface, BSTR name, BSTR
TRACE
(
"(%p)->(%s %s %p)
\n
"
,
This
,
debugstr_w
(
name
),
debugstr_w
(
url
),
playlist
);
return
create_playlist
(
name
,
url
,
playlist
);
/* FIXME: count should be the number of items in the playlist */
return
create_playlist
(
name
,
url
,
0
,
playlist
);
}
static
HRESULT
WINAPI
WMPPlayer4_newMedia
(
IWMPPlayer4
*
iface
,
BSTR
url
,
IWMPMedia
**
media
)
...
...
@@ -2036,8 +2037,13 @@ static HRESULT WINAPI WMPPlaylist_Invoke(IWMPPlaylist *iface, DISPID dispIdMembe
static
HRESULT
WINAPI
WMPPlaylist_get_count
(
IWMPPlaylist
*
iface
,
LONG
*
count
)
{
WMPPlaylist
*
This
=
impl_from_IWMPPlaylist
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
count
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
count
);
if
(
!
count
)
return
E_POINTER
;
*
count
=
This
->
count
;
return
S_OK
;
}
static
HRESULT
WINAPI
WMPPlaylist_get_name
(
IWMPPlaylist
*
iface
,
BSTR
*
name
)
...
...
@@ -2226,7 +2232,7 @@ BOOL init_player(WindowsMediaPlayer *wmp)
wmp
->
IWMPNetwork_iface
.
lpVtbl
=
&
WMPNetworkVtbl
;
name
=
SysAllocString
(
nameW
);
if
(
SUCCEEDED
(
create_playlist
(
name
,
NULL
,
&
playlist
)))
if
(
SUCCEEDED
(
create_playlist
(
name
,
NULL
,
0
,
&
playlist
)))
wmp
->
playlist
=
unsafe_impl_from_IWMPPlaylist
(
playlist
);
else
wmp
->
playlist
=
NULL
;
...
...
@@ -2325,7 +2331,7 @@ HRESULT create_media_from_url(BSTR url, double duration, IWMPMedia **ppMedia)
return
E_OUTOFMEMORY
;
}
HRESULT
create_playlist
(
BSTR
name
,
BSTR
url
,
IWMPPlaylist
**
ppPlaylist
)
HRESULT
create_playlist
(
BSTR
name
,
BSTR
url
,
LONG
count
,
IWMPPlaylist
**
ppPlaylist
)
{
WMPPlaylist
*
playlist
;
...
...
@@ -2337,6 +2343,7 @@ HRESULT create_playlist(BSTR name, BSTR url, IWMPPlaylist **ppPlaylist)
playlist
->
url
=
url
?
heap_strdupW
(
url
)
:
heap_strdupW
(
emptyW
);
playlist
->
name
=
name
?
heap_strdupW
(
name
)
:
heap_strdupW
(
emptyW
);
playlist
->
ref
=
1
;
playlist
->
count
=
count
;
if
(
playlist
->
url
)
{
...
...
dlls/wmp/wmp_private.h
View file @
188992a1
...
...
@@ -65,6 +65,7 @@ typedef struct {
IWMPPlaylist
IWMPPlaylist_iface
;
LONG
ref
;
LONG
count
;
WCHAR
*
url
;
WCHAR
*
name
;
...
...
@@ -116,7 +117,7 @@ void destroy_player(WindowsMediaPlayer*) DECLSPEC_HIDDEN;
WMPMedia
*
unsafe_impl_from_IWMPMedia
(
IWMPMedia
*
iface
)
DECLSPEC_HIDDEN
;
WMPPlaylist
*
unsafe_impl_from_IWMPPlaylist
(
IWMPPlaylist
*
iface
)
DECLSPEC_HIDDEN
;
HRESULT
create_media_from_url
(
BSTR
url
,
double
duration
,
IWMPMedia
**
ppMedia
)
DECLSPEC_HIDDEN
;
HRESULT
create_playlist
(
BSTR
name
,
BSTR
url
,
IWMPPlaylist
**
ppPlaylist
)
DECLSPEC_HIDDEN
;
HRESULT
create_playlist
(
BSTR
name
,
BSTR
url
,
LONG
count
,
IWMPPlaylist
**
ppPlaylist
)
DECLSPEC_HIDDEN
;
void
ConnectionPointContainer_Init
(
WindowsMediaPlayer
*
wmp
)
DECLSPEC_HIDDEN
;
void
ConnectionPointContainer_Destroy
(
WindowsMediaPlayer
*
wmp
)
DECLSPEC_HIDDEN
;
void
call_sink
(
ConnectionPoint
*
This
,
DISPID
dispid
,
DISPPARAMS
*
dispparams
)
DECLSPEC_HIDDEN
;
...
...
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