[tracker-miners/wip/carlosg/cue-guess: 2/6] tracker-extract: Rename TrackerToc constructor




commit 2f6a5bf55a13eb51a18b55cb303a6e086ae9f877
Author: Carlos Garnacho <carlosg gnome org>
Date:   Sun Feb 7 14:13:11 2021 +0100

    tracker-extract: Rename TrackerToc constructor
    
    This function guesses the CUE file (and TOC) out of an audio
    file URI. Rename so it's clearer what it does.

 src/tracker-extract/tracker-cue-sheet.c         | 4 ++--
 src/tracker-extract/tracker-cue-sheet.h         | 2 +-
 src/tracker-extract/tracker-extract-gstreamer.c | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/tracker-extract/tracker-cue-sheet.c b/src/tracker-extract/tracker-cue-sheet.c
index b7dba6bbf..6367821cd 100644
--- a/src/tracker-extract/tracker-cue-sheet.c
+++ b/src/tracker-extract/tracker-cue-sheet.c
@@ -358,7 +358,7 @@ find_local_cue_sheets (GFile *audio_file)
 }
 
 TrackerToc *
-tracker_cue_sheet_parse_uri (const gchar *uri)
+tracker_cue_sheet_guess_from_uri (const gchar *uri)
 {
        GFile *audio_file;
        gchar *audio_file_name;
@@ -419,7 +419,7 @@ tracker_cue_sheet_parse (const gchar *cue_sheet)
 }
 
 TrackerToc *
-tracker_cue_sheet_parse_uri (const gchar *uri)
+tracker_cue_sheet_guess_from_uri (const gchar *uri)
 {
        return NULL;
 }
diff --git a/src/tracker-extract/tracker-cue-sheet.h b/src/tracker-extract/tracker-cue-sheet.h
index efe0b46d0..6a4bc6df4 100644
--- a/src/tracker-extract/tracker-cue-sheet.h
+++ b/src/tracker-extract/tracker-cue-sheet.h
@@ -49,7 +49,7 @@ void        tracker_toc_add_entry       (TrackerToc *toc,
                                          gdouble     duration);
 
 TrackerToc *tracker_cue_sheet_parse     (const gchar *cue_sheet);
-TrackerToc *tracker_cue_sheet_parse_uri (const gchar *uri);
+TrackerToc *tracker_cue_sheet_guess_from_uri (const gchar *uri);
 
 G_END_DECLS
 
diff --git a/src/tracker-extract/tracker-extract-gstreamer.c b/src/tracker-extract/tracker-extract-gstreamer.c
index 4a098ee78..c9aa2a62a 100644
--- a/src/tracker-extract/tracker-extract-gstreamer.c
+++ b/src/tracker-extract/tracker-extract-gstreamer.c
@@ -1319,7 +1319,7 @@ tracker_extract_gstreamer (const gchar          *uri,
                }
 
                if (extractor->toc == NULL) {
-                       extractor->toc = tracker_cue_sheet_parse_uri (uri);
+                       extractor->toc = tracker_cue_sheet_guess_from_uri (uri);
                }
 
                if (extractor->toc == NULL &&


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