[totem-pl-parser] plparse: Better debug in M3U parsing
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem-pl-parser] plparse: Better debug in M3U parsing
- Date: Fri, 15 Apr 2016 13:50:22 +0000 (UTC)
commit ec5d412404739bfb10fba531dbb55492562c0091
Author: Bastien Nocera <hadess hadess net>
Date: Fri Apr 15 14:42:52 2016 +0200
plparse: Better debug in M3U parsing
plparse/totem-pl-parser-lines.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/plparse/totem-pl-parser-lines.c b/plparse/totem-pl-parser-lines.c
index 98f9662..89e6469 100644
--- a/plparse/totem-pl-parser-lines.c
+++ b/plparse/totem-pl-parser-lines.c
@@ -392,13 +392,16 @@ totem_pl_parser_add_m3u (TotemPlParser *parser,
const char *extinfo, *extvlcopt_audiotrack;
char *pl_uri;
- if (g_file_load_contents (file, NULL, &contents, &size, NULL, NULL) == FALSE)
+ if (g_file_load_contents (file, NULL, &contents, &size, NULL, NULL) == FALSE) {
+ DEBUG (file, g_print ("Failed to load '%s'\n", uri));
return TOTEM_PL_PARSER_RESULT_ERROR;
+ }
/* .pls files with a .m3u extension, the nasties */
if (g_str_has_prefix (contents, "[playlist]") != FALSE
|| g_str_has_prefix (contents, "[Playlist]") != FALSE
|| g_str_has_prefix (contents, "[PLAYLIST]") != FALSE) {
+ DEBUG (file, g_print ("Parsing '%s' playlist as PLS\n", uri));
retval = totem_pl_parser_add_pls_with_contents (parser, file, base_file, contents,
parse_data);
g_free (contents);
return retval;
@@ -406,6 +409,7 @@ totem_pl_parser_add_m3u (TotemPlParser *parser,
if (strstr (contents, EXTINF_HLS) ||
strstr (contents, EXTINF_HLS2)) {
+ DEBUG (file, g_print ("Unhandled HLS playlist '%s', should be passed to player\n", uri));
g_free (contents);
return retval;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]