Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
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
Иван Мажукин
mpd
Commits
5934ccbb
Commit
5934ccbb
authored
Jan 28, 2013
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
input/despotify: rename class
parent
e39969a0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
10 deletions
+9
-10
DespotifyInputPlugin.cxx
src/input/DespotifyInputPlugin.cxx
+9
-10
No files found.
src/input/DespotifyInputPlugin.cxx
View file @
5934ccbb
...
...
@@ -37,7 +37,7 @@ extern "C" {
#include <stdio.h>
struct
input_despotify
{
struct
DespotifyInputStream
{
struct
input_stream
base
;
struct
despotify_session
*
session
;
...
...
@@ -48,9 +48,8 @@ struct input_despotify {
bool
eof
;
};
static
void
refill_buffer
(
struct
input_despotify
*
ctx
)
refill_buffer
(
DespotifyInputStream
*
ctx
)
{
/* Wait until there is data */
while
(
1
)
{
...
...
@@ -77,7 +76,7 @@ refill_buffer(struct input_despotify *ctx)
static
void
callback
(
G_GNUC_UNUSED
struct
despotify_session
*
ds
,
int
sig
,
G_GNUC_UNUSED
void
*
data
,
void
*
callback_data
)
{
struct
input_despotify
*
ctx
=
(
struct
input_despotify
*
)
callback_data
;
DespotifyInputStream
*
ctx
=
(
DespotifyInputStream
*
)
callback_data
;
switch
(
sig
)
{
case
DESPOTIFY_NEW_TRACK
:
...
...
@@ -105,7 +104,7 @@ input_despotify_open(const char *url,
Mutex
&
mutex
,
Cond
&
cond
,
G_GNUC_UNUSED
GError
**
error_r
)
{
struct
input_despotify
*
ctx
;
DespotifyInputStream
*
ctx
;
struct
despotify_session
*
session
;
struct
ds_link
*
ds_link
;
struct
ds_track
*
track
;
...
...
@@ -127,7 +126,7 @@ input_despotify_open(const char *url,
return
NULL
;
}
ctx
=
g_new
(
struct
input_despotify
,
1
);
ctx
=
g_new
(
DespotifyInputStream
,
1
);
memset
(
ctx
,
0
,
sizeof
(
*
ctx
));
track
=
despotify_link_get_track
(
session
,
ds_link
);
...
...
@@ -166,7 +165,7 @@ static size_t
input_despotify_read
(
struct
input_stream
*
is
,
void
*
ptr
,
size_t
size
,
G_GNUC_UNUSED
GError
**
error_r
)
{
struct
input_despotify
*
ctx
=
(
struct
input_despotify
*
)
is
;
DespotifyInputStream
*
ctx
=
(
DespotifyInputStream
*
)
is
;
size_t
to_cpy
=
size
;
if
(
ctx
->
len_available
==
0
)
...
...
@@ -185,7 +184,7 @@ input_despotify_read(struct input_stream *is, void *ptr, size_t size,
static
void
input_despotify_close
(
struct
input_stream
*
is
)
{
struct
input_despotify
*
ctx
=
(
struct
input_despotify
*
)
is
;
DespotifyInputStream
*
ctx
=
(
DespotifyInputStream
*
)
is
;
if
(
ctx
->
tag
!=
NULL
)
tag_free
(
ctx
->
tag
);
...
...
@@ -199,7 +198,7 @@ input_despotify_close(struct input_stream *is)
static
bool
input_despotify_eof
(
struct
input_stream
*
is
)
{
struct
input_despotify
*
ctx
=
(
struct
input_despotify
*
)
is
;
DespotifyInputStream
*
ctx
=
(
DespotifyInputStream
*
)
is
;
return
ctx
->
eof
;
}
...
...
@@ -215,7 +214,7 @@ input_despotify_seek(G_GNUC_UNUSED struct input_stream *is,
static
struct
tag
*
input_despotify_tag
(
struct
input_stream
*
is
)
{
struct
input_despotify
*
ctx
=
(
struct
input_despotify
*
)
is
;
DespotifyInputStream
*
ctx
=
(
DespotifyInputStream
*
)
is
;
struct
tag
*
tag
=
ctx
->
tag
;
ctx
->
tag
=
NULL
;
...
...
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