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
4422fae2
Commit
4422fae2
authored
Feb 01, 2005
by
Warren Dukes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove getOggTotalTime(), wasn't used anywhere
git-svn-id:
https://svn.musicpd.org/mpd/trunk@2921
09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent
92ad6c47
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
28 deletions
+1
-28
mpc_plugin.c
src/inputPlugins/mpc_plugin.c
+1
-8
ogg_plugin.c
src/inputPlugins/ogg_plugin.c
+0
-20
No files found.
src/inputPlugins/mpc_plugin.c
View file @
4422fae2
...
@@ -39,13 +39,6 @@ typedef struct _MpcCallbackData {
...
@@ -39,13 +39,6 @@ typedef struct _MpcCallbackData {
DecoderControl
*
dc
;
DecoderControl
*
dc
;
}
MpcCallbackData
;
}
MpcCallbackData
;
/* this is just for tag parsing for db import! */
int
getMpcTotalTime
(
char
*
file
)
{
int
totalTime
=
0
;
return
totalTime
;
}
mpc_int32_t
mpc_read_cb
(
void
*
vdata
,
void
*
ptr
,
mpc_int32_t
size
)
{
mpc_int32_t
mpc_read_cb
(
void
*
vdata
,
void
*
ptr
,
mpc_int32_t
size
)
{
mpc_int32_t
ret
=
0
;
mpc_int32_t
ret
=
0
;
MpcCallbackData
*
data
=
(
MpcCallbackData
*
)
vdata
;
MpcCallbackData
*
data
=
(
MpcCallbackData
*
)
vdata
;
...
@@ -263,7 +256,7 @@ MpdTag * mpcTagDup(char * file) {
...
@@ -263,7 +256,7 @@ MpdTag * mpcTagDup(char * file) {
/* get tag info here */
/* get tag info here */
if
(
!
ret
)
ret
=
newMpdTag
();
if
(
!
ret
)
ret
=
newMpdTag
();
ret
->
time
=
getMpcTotalTime
(
file
)
;
ret
->
time
=
0
;
return
ret
;
return
ret
;
}
}
...
...
src/inputPlugins/ogg_plugin.c
View file @
4422fae2
...
@@ -46,26 +46,6 @@ typedef struct _OggCallbackData {
...
@@ -46,26 +46,6 @@ typedef struct _OggCallbackData {
DecoderControl
*
dc
;
DecoderControl
*
dc
;
}
OggCallbackData
;
}
OggCallbackData
;
/* this is just for tag parsing for db import! */
int
getOggTotalTime
(
char
*
file
)
{
OggVorbis_File
vf
;
FILE
*
oggfp
;
int
totalTime
;
if
(
!
(
oggfp
=
fopen
(
file
,
"r"
)))
return
-
1
;
if
(
ov_open
(
oggfp
,
&
vf
,
NULL
,
0
)
<
0
)
{
fclose
(
oggfp
);
return
-
1
;
}
totalTime
=
ov_time_total
(
&
vf
,
-
1
)
+
0
.
5
;
ov_clear
(
&
vf
);
return
totalTime
;
}
size_t
ogg_read_cb
(
void
*
ptr
,
size_t
size
,
size_t
nmemb
,
void
*
vdata
)
size_t
ogg_read_cb
(
void
*
ptr
,
size_t
size
,
size_t
nmemb
,
void
*
vdata
)
{
{
size_t
ret
=
0
;
size_t
ret
=
0
;
...
...
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