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
a582deee
Commit
a582deee
authored
Aug 13, 2012
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
input_stream, main: remove obsolete GLib version checks
MPD requires GLib 2.16.
parent
12be9e81
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
8 deletions
+0
-8
input_stream.h
src/input_stream.h
+0
-4
main.c
src/main.c
+0
-2
lastfm_playlist_plugin.c
src/playlist/lastfm_playlist_plugin.c
+0
-2
No files found.
src/input_stream.h
View file @
a582deee
...
@@ -29,10 +29,6 @@
...
@@ -29,10 +29,6 @@
#include <stdbool.h>
#include <stdbool.h>
#include <sys/types.h>
#include <sys/types.h>
#if !GLIB_CHECK_VERSION(2,14,0)
typedef
gint64
goffset
;
#endif
struct
input_stream
{
struct
input_stream
{
/**
/**
* the plugin which implements this input stream
* the plugin which implements this input stream
...
...
src/main.c
View file @
a582deee
...
@@ -135,10 +135,8 @@ glue_mapper_init(GError **error_r)
...
@@ -135,10 +135,8 @@ glue_mapper_init(GError **error_r)
return
false
;
return
false
;
}
}
#if GLIB_CHECK_VERSION(2,14,0)
if
(
music_dir
==
NULL
)
if
(
music_dir
==
NULL
)
music_dir
=
g_strdup
(
g_get_user_special_dir
(
G_USER_DIRECTORY_MUSIC
));
music_dir
=
g_strdup
(
g_get_user_special_dir
(
G_USER_DIRECTORY_MUSIC
));
#endif
mapper_init
(
music_dir
,
playlist_dir
);
mapper_init
(
music_dir
,
playlist_dir
);
...
...
src/playlist/lastfm_playlist_plugin.c
View file @
a582deee
...
@@ -58,12 +58,10 @@ lastfm_init(const struct config_param *param)
...
@@ -58,12 +58,10 @@ lastfm_init(const struct config_param *param)
lastfm_config
.
user
=
g_uri_escape_string
(
user
,
NULL
,
false
);
lastfm_config
.
user
=
g_uri_escape_string
(
user
,
NULL
,
false
);
#if GLIB_CHECK_VERSION(2,16,0)
if
(
strlen
(
passwd
)
!=
32
)
if
(
strlen
(
passwd
)
!=
32
)
lastfm_config
.
md5
=
g_compute_checksum_for_string
(
G_CHECKSUM_MD5
,
lastfm_config
.
md5
=
g_compute_checksum_for_string
(
G_CHECKSUM_MD5
,
passwd
,
strlen
(
passwd
));
passwd
,
strlen
(
passwd
));
else
else
#endif
lastfm_config
.
md5
=
g_strdup
(
passwd
);
lastfm_config
.
md5
=
g_strdup
(
passwd
);
return
true
;
return
true
;
...
...
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