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
290102fd
Commit
290102fd
authored
Mar 17, 2004
by
Warren Dukes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make playlist restart from current position in song when using state file
git-svn-id:
https://svn.musicpd.org/mpd/trunk@269
09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent
e7151f94
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
playlist.c
src/playlist.c
+2
-0
tag.c
src/tag.c
+4
-2
No files found.
src/playlist.c
View file @
290102fd
...
@@ -244,6 +244,8 @@ void loadPlaylistFromStateFile(FILE * fp, char * buffer, int state, int current,
...
@@ -244,6 +244,8 @@ void loadPlaylistFromStateFile(FILE * fp, char * buffer, int state, int current,
}
}
if
(
state
==
PLAYER_STATE_PAUSE
)
{
if
(
state
==
PLAYER_STATE_PAUSE
)
{
playerPause
(
stderr
);
playerPause
(
stderr
);
}
if
(
state
!=
PLAYER_STATE_STOP
)
{
seekSongInPlaylist
(
stderr
,
playlist
.
length
-
1
,
seekSongInPlaylist
(
stderr
,
playlist
.
length
-
1
,
time
);
time
);
}
}
...
...
src/tag.c
View file @
290102fd
...
@@ -170,11 +170,12 @@ MpdTag * mp3TagDup(char * utf8file) {
...
@@ -170,11 +170,12 @@ MpdTag * mp3TagDup(char * utf8file) {
#ifdef HAVE_FAAD
#ifdef HAVE_FAAD
MpdTag
*
mp4TagDup
(
char
*
utf8file
)
{
MpdTag
*
mp4TagDup
(
char
*
utf8file
)
{
MpdTag
*
ret
=
NULL
;
MpdTag
*
ret
=
NULL
;
int
time
=
-
1
;
int
time
;
#warning implement mp4 tag parsing, this includes using mp4v2 and id3
#warning implement mp4 tag parsing, this includes using mp4v2 and id3
#warning getMp4TotalTime needs implementing
#warning getMp4TotalTime needs implementing
//time = getMp4TotalTime(rmp2amp(utf8ToFsCharset(utf8file)));
//time = getMp4TotalTime(rmp2amp(utf8ToFsCharset(utf8file)));
time
=
0
;
if
(
time
>=
0
)
{
if
(
time
>=
0
)
{
if
(
!
ret
)
ret
=
newMpdTag
();
if
(
!
ret
)
ret
=
newMpdTag
();
...
@@ -186,10 +187,11 @@ MpdTag * mp4TagDup(char * utf8file) {
...
@@ -186,10 +187,11 @@ MpdTag * mp4TagDup(char * utf8file) {
MpdTag
*
aacTagDup
(
char
*
utf8file
)
{
MpdTag
*
aacTagDup
(
char
*
utf8file
)
{
MpdTag
*
ret
=
NULL
;
MpdTag
*
ret
=
NULL
;
int
time
=
-
1
;
int
time
;
#warning getMp4TotalTime needs implementing
#warning getMp4TotalTime needs implementing
//time = getAacTotalTime(rmp2amp(utf8ToFsCharset(utf8file)));
//time = getAacTotalTime(rmp2amp(utf8ToFsCharset(utf8file)));
time
=
0
;
if
(
time
>=
0
)
{
if
(
time
>=
0
)
{
if
(
!
ret
)
ret
=
newMpdTag
();
if
(
!
ret
)
ret
=
newMpdTag
();
...
...
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