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
50c0c4b7
Commit
50c0c4b7
authored
Apr 01, 2010
by
Orivej Desh
Committed by
Max Kellermann
Apr 01, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cue: fix code style
parent
8446b70d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
10 deletions
+9
-10
cue_tag.c
src/cue/cue_tag.c
+5
-5
cue_playlist_plugin.c
src/playlist/cue_playlist_plugin.c
+4
-5
No files found.
src/cue/cue_tag.c
View file @
50c0c4b7
...
...
@@ -179,12 +179,12 @@ cue_tag(struct Cd *cd, unsigned tnum)
return
NULL
;
tag
->
time
=
track_get_length
(
track
)
-
track_get_index
(
track
,
1
)
+
track_get_zero_pre
(
track
);
track
=
cd_get_track
(
cd
,
tnum
+
1
);
-
track_get_index
(
track
,
1
)
+
track_get_zero_pre
(
track
);
track
=
cd_get_track
(
cd
,
tnum
+
1
);
if
(
track
!=
NULL
)
tag
->
time
+=
track_get_index
(
track
,
1
)
-
track_get_zero_pre
(
track
);
tag
->
time
+=
track_get_index
(
track
,
1
)
-
track_get_zero_pre
(
track
);
/* libcue returns the track duration in frames, and there are
75 frames per second; this formula rounds down */
tag
->
time
=
tag
->
time
/
75
;
...
...
src/playlist/cue_playlist_plugin.c
View file @
50c0c4b7
...
...
@@ -107,15 +107,14 @@ cue_playlist_read(struct playlist_provider *_playlist)
-
track_get_zero_pre
(
track
))
*
1000
)
/
75
;
song
->
end_ms
=
((
track_get_start
(
track
)
+
track_get_length
(
track
)
-
track_get_index
(
track
,
1
)
+
track_get_zero_pre
(
track
))
*
1000
)
/
75
;
+
track_get_zero_pre
(
track
))
*
1000
)
/
75
;
/* append pregap of the next track to the end of this one */
track
=
cd_get_track
(
playlist
->
cd
,
playlist
->
next
);
if
(
track
!=
NULL
)
song
->
end_ms
=
((
track_get_start
(
track
)
+
track_get_index
(
track
,
1
)
-
track_get_zero_pre
(
track
))
*
1000
)
/
75
;
song
->
end_ms
=
((
track_get_start
(
track
)
+
track_get_index
(
track
,
1
)
-
track_get_zero_pre
(
track
))
*
1000
)
/
75
;
return
song
;
}
...
...
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