After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 753554 - Make metadata retrieval cancellable
Make metadata retrieval cancellable
Status: RESOLVED FIXED
Product: sound-juicer
Classification: Applications
Component: general
git master
Other All
: Normal normal
: ---
Assigned To: Sound Juicer Maintainers
Sound Juicer Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-08-12 10:05 UTC by Phillip Wood
Modified: 2015-08-17 13:13 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Make SjMetadata.list_albums() cancellable (4.88 KB, patch)
2015-08-12 10:05 UTC, Phillip Wood
committed Details | Review
Make SjMetadataMusicbraniz5.list_albums() cancellable (12.98 KB, patch)
2015-08-12 10:05 UTC, Phillip Wood
committed Details | Review
Make sj_metadata_getter_list_albums() cancellable (4.12 KB, patch)
2015-08-12 10:06 UTC, Phillip Wood
committed Details | Review
Use sj_metadata_list_albums_async() in reread_cd() (5.05 KB, patch)
2015-08-12 10:06 UTC, Phillip Wood
committed Details | Review
Use sj_metadata_list_albums_async() in mb-test (2.26 KB, patch)
2015-08-12 10:06 UTC, Phillip Wood
committed Details | Review
Remove sj_metadata_list_albums() (5.67 KB, patch)
2015-08-12 10:06 UTC, Phillip Wood
committed Details | Review

Description Phillip Wood 2015-08-12 10:05:24 UTC
This will stop the UI from showing state metadata if the disc is
ejected while metadata is being retrieved.
Comment 1 Phillip Wood 2015-08-12 10:05:33 UTC
Created attachment 309122 [details] [review]
Make SjMetadata.list_albums() cancellable

This will allow us to avoid unnecessary MusicBrainz queries. To simplify
things for classes implementing this interface the wrapper ensures the
vfunc is always called with a valid GCancellable and GError.
Comment 2 Phillip Wood 2015-08-12 10:05:58 UTC
Created attachment 309123 [details] [review]
Make SjMetadataMusicbraniz5.list_albums() cancellable

This avoids unnecessary MusicBrainz queries if the disc is ejected or
the drive is changed while a lookup is in progress.
Comment 3 Phillip Wood 2015-08-12 10:06:02 UTC
Created attachment 309124 [details] [review]
Make sj_metadata_getter_list_albums() cancellable

This stops the UI from displaying stale disc information if the disc is
ejected or the drive is changed while a lookup is in progress.
Comment 4 Phillip Wood 2015-08-12 10:06:07 UTC
Created attachment 309125 [details] [review]
Use sj_metadata_list_albums_async() in reread_cd()

This is the final step in making metadata retrieval cancellable so that
the UI does not display stale metadata if the disc is ejected or the
drive changed during metadata retrieval.
Comment 5 Phillip Wood 2015-08-12 10:06:12 UTC
Created attachment 309126 [details] [review]
Use sj_metadata_list_albums_async() in mb-test
Comment 6 Phillip Wood 2015-08-12 10:06:16 UTC
Created attachment 309127 [details] [review]
Remove sj_metadata_list_albums()

This is no longer needed as we use sj_metadata_list_albums_async() now.
Comment 7 Phillip Wood 2015-08-17 13:13:27 UTC
Attachment 309122 [details] pushed as b6764bb - Make SjMetadata.list_albums() cancellable
Attachment 309123 [details] pushed as c03f441 - Make SjMetadataMusicbraniz5.list_albums() cancellable
Attachment 309124 [details] pushed as e76048d - Make sj_metadata_getter_list_albums() cancellable
Attachment 309125 [details] pushed as 60d4b85 - Use sj_metadata_list_albums_async() in reread_cd()
Attachment 309126 [details] pushed as 65822c1 - Use sj_metadata_list_albums_async() in mb-test
Attachment 309127 [details] pushed as d343100 - Remove sj_metadata_list_albums()