libcdio-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Libcdio-devel] [PATCH] Fix compilation


From: KO Myung-Hun
Subject: [Libcdio-devel] [PATCH] Fix compilation
Date: Sat, 25 Nov 2017 19:13:41 +0900

-----
  CC       cdda-player.o
cdda-player.c: In function 'get_cddb_disc_info':
cdda-player.c:534:60: error: 'i_first_track' undeclared (first use in this 
function)
   b_db = init_cddb(p_cdio, &p_conn, &p_cddb_disc, xperror, i_first_track,
                                                            ^
cdda-player.c:534:60: note: each undeclared identifier is reported only once 
for each function it appears in
cdda-player.c:535:20: error: 'i_tracks' undeclared (first use in this function)
                    i_tracks, &i_cddb_matches);
                    ^
cdda-player.c: In function 'get_cddb_track_info':
cdda-player.c:834:51: error: 'i_first_track' undeclared (first use in this 
function)
                                         i_track - i_first_track);
                                                   ^
-----
---
 src/cdda-player.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/cdda-player.c b/src/cdda-player.c
index efeee195..333e1f59 100644
--- a/src/cdda-player.c
+++ b/src/cdda-player.c
@@ -531,8 +531,8 @@ static void
 get_cddb_disc_info(CdIo_t *p_cdio)
 {
 #ifdef HAVE_CDDB
-  b_db = init_cddb(p_cdio, &p_conn, &p_cddb_disc, xperror, i_first_track,
-                   i_tracks, &i_cddb_matches);
+  b_db = init_cddb(p_cdio, &p_conn, &p_cddb_disc, xperror, 
i_first_track_global,
+                   i_tracks_global, &i_cddb_matches);
   if (b_db) {
     int i_year;
     i_year = atoi(year);
@@ -831,7 +831,7 @@ get_cddb_track_info(track_t i_track)
 {
 #ifdef HAVE_CDDB
   cddb_track_t *t = cddb_disc_get_track(p_cddb_disc,
-                                        i_track - i_first_track);
+                                        i_track - i_first_track_global);
   if (t) {
     cddb_track_set_title(t, title);
     cddb_track_set_artist(t, artist);
-- 
2.13.3




reply via email to

[Prev in Thread] Current Thread [Next in Thread]