Skip to content
  1. Apr 12, 2024
  2. Apr 02, 2024
  3. Mar 22, 2024
  4. Mar 14, 2024
  5. Mar 12, 2024
  6. Nov 14, 2023
  7. Aug 08, 2023
  8. Apr 25, 2023
  9. Apr 07, 2023
  10. Dec 09, 2022
  11. Sep 18, 2022
  12. Jul 17, 2022
  13. Jun 21, 2022
  14. Jun 20, 2022
    • Bastien Nocera's avatar
      plparser: Fix return value from cancelled calls · e4dc3264
      Bastien Nocera authored
      As per the API documentation, and the code when it still used
      g_simple_async_result_*, totem_pl_parser_parse_finish() should return a
      TotemPlParserResult of TOTEM_PL_PARSER_RESULT_CANCELLED when parsing is
      cancelled.
      
      But the port to GTask changed that, as all the errors caught during
      parsing would return -1 as the error code, which isn't a valid
      TotemPlParserResult value.
      
      As the only way for totem_pl_parser_parse_finish() to have a GError set
      is for the call to be cancelled, catch that and correct the return
      value.
      
      Fixes: 45664037 ("plparse: Port from GSimpleAsyncResult to GTask")
      Closes: #38
      e4dc3264
    • Bastien Nocera's avatar
      plparser: Fix retval when guard are triggered · 28313b1d
      Bastien Nocera authored
      The function doesn't return TRUE/FALSE, but a TotemPlParserResult.
      28313b1d
  15. Feb 11, 2022
    • Bastien Nocera's avatar
      podcast: Fix deprecation warnings · c6c1c51a
      Bastien Nocera authored
      ../../../../Projects/jhbuild/totem-pl-parser/plparse/totem-pl-parser-decode-date.c: In function ‘get_tzone’:
      ../../../../Projects/jhbuild/totem-pl-parser/plparse/totem-pl-parser-decode-date.c:322:25: warning: ‘g_time_zone_new’ is deprecated: Use 'g_time_zone_new_identifier' instead [-Wdeprecated-declarations]
        322 |                         return g_time_zone_new (tzone);
            |                         ^~~~~~
      In file included from /usr/include/glib-2.0/glib/gdatetime.h:31,
                       from /usr/include/glib-2.0/glib/gbookmarkfile.h:26,
                       from /usr/include/glib-2.0/glib.h:37,
                       from ../../../../Projects/jhbuild/totem-pl-parser/plparse/totem-pl-parser-decode-date.h:20,
                       from ../../../../Projects/jhbuild/totem-pl-parser/plparse/totem-pl-parser-decode-date.c:24:
      /usr/include/glib-2.0/glib/gtimezone.h:57:25: note: declared here
         57 | GTimeZone *             g_time_zone_new                                 (const gchar *identifier);
            |                         ^~~~~~~~~~~~~~~
      ../../../../Projects/jhbuild/totem-pl-parser/plparse/totem-pl-parser-decode-date.c:341:25: warning: ‘g_time_zone_new’ is deprecated: Use 'g_time_zone_new_identifier' instead [-Wdeprecated-declarations]
        341 |                         return g_time_zone_new (tzone);
            |                         ^~~~~~
      In file included from /usr/include/glib-2.0/glib/gdatetime.h:31,
                       from /usr/include/glib-2.0/glib/gbookmarkfile.h:26,
                       from /usr/include/glib-2.0/glib.h:37,
                       from ../../../../Projects/jhbuild/totem-pl-parser/plparse/totem-pl-parser-decode-date.h:20,
                       from ../../../../Projects/jhbuild/totem-pl-parser/plparse/totem-pl-parser-decode-date.c:24:
      /usr/include/glib-2.0/glib/gtimezone.h:57:25: note: declared here
         57 | GTimeZone *             g_time_zone_new                                 (const gchar *identifier);
            |                         ^~~~~~~~~~~~~~~
      c6c1c51a
    • Bastien Nocera's avatar
      plparser: Fix g_once_init_enter() warnings · 7a598999
      Bastien Nocera authored
      The "volatile" keyword was removed.
      
      In file included from /usr/include/glib-2.0/glib/gthread.h:32,
                       from /usr/include/glib-2.0/glib/gasyncqueue.h:32,
                       from /usr/include/glib-2.0/glib.h:32,
                       from ../../../../Projects/jhbuild/totem-pl-parser/plparse/totem-pl-parser.c:128:
      ../../../../Projects/jhbuild/totem-pl-parser/plparse/totem-pl-parser.c: In function ‘totem_pl_parser_get_type’:
      /usr/include/glib-2.0/glib/gatomic.h:113:5: warning: argument 2 of ‘__atomic_load’ discards ‘volatile’ qualifier [-Wincompatible-pointer-types]
        113 |     __atomic_load (gapg_temp_atomic, &gapg_temp_newval, __ATOMIC_SEQ_CST); \
            |     ^~~~~~~~~~~~~
      /usr/include/glib-2.0/glib/gthread.h:260:7: note: in expansion of macro ‘g_atomic_pointer_get’
        260 |     (!g_atomic_pointer_get (location) &&                             \
            |       ^~~~~~~~~~~~~~~~~~~~
      ../../../../Projects/jhbuild/totem-pl-parser/plparse/totem-pl-parser.c:307:13: note: in expansion of macro ‘g_once_init_enter’
        307 |         if (g_once_init_enter (&g_define_type_id__volatile))
            |             ^~~~~~~~~~~~~~~~~
      ../../../../Projects/jhbuild/totem-pl-parser/plparse/totem-pl-parser.c: In function ‘totem_pl_parser_metadata_get_type’:
      /usr/include/glib-2.0/glib/gatomic.h:113:5: warning: argument 2 of ‘__atomic_load’ discards ‘volatile’ qualifier [-Wincompatible-pointer-types]
        113 |     __atomic_load (gapg_temp_atomic, &gapg_temp_newval, __ATOMIC_SEQ_CST); \
            |     ^~~~~~~~~~~~~
      /usr/include/glib-2.0/glib/gthread.h:260:7: note: in expansion of macro ‘g_atomic_pointer_get’
        260 |     (!g_atomic_pointer_get (location) &&                             \
            |       ^~~~~~~~~~~~~~~~~~~~
      ../../../../Projects/jhbuild/totem-pl-parser/plparse/totem-pl-parser.c:2784:13: note: in expansion of macro ‘g_once_init_enter’
       2784 |         if (g_once_init_enter (&g_define_type_id__volatile))
            |             ^~~~~~~~~~~~~~~~~
      7a598999
    • Bastien Nocera's avatar
      tests: Split podcast tests · 029855c2
      Bastien Nocera authored
      029855c2
    • Bastien Nocera's avatar
      tests: Split some utilities · a77099f1
      Bastien Nocera authored
      a77099f1
    • Bastien Nocera's avatar
      tests: Add SPDX header · 1520c321
      Bastien Nocera authored
      So we know the license
      1520c321
    • Bastien Nocera's avatar
      ci: Run dist in same environment as tests · 30e80c21
      Bastien Nocera authored
      Seeing as the dist processing runs the tests too...
      30e80c21
  16. Feb 01, 2022
  17. Dec 29, 2021
  18. Sep 15, 2021
  19. Jul 22, 2021
  20. Jun 25, 2021
  21. Jun 24, 2021