cover-thumbnailer: g_match_info_fetch_pos: assertion 'match_info != NULL' failure
Steps to reproduce
- Follow the steps on the wiki to enable cover thumbnailing
mkdir ~/movies
- Copy a video file into
~/movies
and name itsesame.street.s01e01.mp4
- Navigate to the directory with Thunar to start thumbnailing and to trigger the following warning:
g_match_info_fetch_pos: assertion 'match_info != NULL' failed
Potential patch
I used this patch to help test !40 (merged), but I didn't review it thoroughly:
diff --git a/plugins/cover-thumbnailer/cover-thumbnailer.c b/plugins/cover-thumbnailer/cover-thumbnailer.c
index c2a1014..c3e5219 100644
--- a/plugins/cover-thumbnailer/cover-thumbnailer.c
+++ b/plugins/cover-thumbnailer/cover-thumbnailer.c
@@ -406,7 +406,7 @@ cover_thumbnailer_get_title (CoverThumbnailer *cover,
basename = g_file_get_basename (gfile);
/* check if the title looks like a serie */
- is_series = g_regex_match (cover->series_regex, basename, 0, NULL);
+ is_series = g_regex_match (cover->series_regex, basename, 0, &match_info);
/* if this is not a serie, look for other filename crap */
if (is_series
Version
700934ef compiled on Arch Linux