]> git.pld-linux.org Git - packages/Thunar-media-tags-plugin.git/blob - crash-with-ogg-video-files.patch
- patches from upstream
[packages/Thunar-media-tags-plugin.git] / crash-with-ogg-video-files.patch
1 Description: Call taglib_file_is_valid() for input audio files
2  Check that the file contains valid audio information to determine whether
3  the plugin should act on it or not.
4 Origin: other, http://bugzilla.xfce.org/attachment.cgi?id=2879
5 Bug: http://bugzilla.xfce.org/show_bug.cgi?id=6297
6 ---
7  thunar-plugin/media-tags-provider.c |    5 +++--
8  1 files changed, 3 insertions(+), 2 deletions(-)
9
10 diff --git a/thunar-plugin/media-tags-provider.c b/thunar-plugin/media-tags-provider.c
11 index a7604ea..2c31a98 100644
12 --- a/thunar-plugin/media-tags-provider.c
13 +++ b/thunar-plugin/media-tags-provider.c
14 @@ -163,10 +163,11 @@ media_tags_get_audio_file_supported (ThunarxFileInfo *info)
15  
16    if (G_LIKELY (taglib_file != NULL))
17      {
18 +      /* Check that the file contains valid audio info */
19 +      supported = taglib_file_is_valid (taglib_file);
20 +
21        /* Free the taglib file */
22        taglib_file_free (taglib_file);
23 -
24 -      supported = TRUE;
25      }
26  
27    g_free (filename);
28
This page took 0.054694 seconds and 4 git commands to generate.