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 600887 - [common] Loading icon and title on Blu-ray video discs
[common] Loading icon and title on Blu-ray video discs
Status: RESOLVED FIXED
Product: gvfs
Classification: Core
Component: [obsolete] gdu volume monitor
unspecified
Other All
: Normal normal
: ---
Assigned To: gvfs-maint
gvfs-maint
Depends on:
Blocks:
 
 
Reported: 2009-11-05 21:52 UTC by Bastien Nocera
Modified: 2011-05-16 15:39 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
[common] Loading icon and title on Blu-ray video discs (8.39 KB, patch)
2009-11-05 21:52 UTC, Bastien Nocera
none Details | Review
directory from "Outlander" Blu-ray (284.97 KB, application/x-compressed-tar)
2009-11-05 21:54 UTC, Bastien Nocera
  Details
[common] Loading icon and title on Blu-ray video discs (11.86 KB, patch)
2009-11-09 19:07 UTC, Bastien Nocera
committed Details | Review
[gdu] Use BDMV icon and name if available (4.42 KB, patch)
2009-11-09 19:07 UTC, Bastien Nocera
committed Details | Review
and with a little icon (5.27 KB, image/png)
2009-11-09 19:24 UTC, Bastien Nocera
  Details

Description Bastien Nocera 2009-11-05 21:52:42 UTC
Only the common bits implemented, nothing in the volume monitor.
Comment 1 Bastien Nocera 2009-11-05 21:52:45 UTC
Created attachment 147041 [details] [review]
[common] Loading icon and title on Blu-ray video discs

Using the BDMV/META/DL/bdmt_eng.xml file on BDMV discs,
we can load better names and icons for the disc.
Comment 2 Bastien Nocera 2009-11-05 21:54:50 UTC
Created attachment 147042 [details]
directory from "Outlander" Blu-ray
Comment 3 Bastien Nocera 2009-11-05 21:56:25 UTC
See also:
http://forum.doom9.org/showthread.php?p=1325366
from comment #11 onwards.

Note that the patch I uploaded doesn't support reading from non-English files (which it probably should).
Comment 4 David Zeuthen (not reading bugmail) 2009-11-09 14:16:32 UTC
Sounds good to me, thanks for hacking on it. Maybe it would be nice to have a function that calls all of

 g_vfs_mount_info_query_autorun_info
 g_vfs_mount_info_query_xdg_volume_info
 g_vfs_mount_info_query_bdmv_volume_info

and handles all the merging/logic of which information to use (based on priorities). Then things would Just Work(tm) when adding new sources of information too. Should probably take a flags parameter so people can turn off certain sources too.

Thoughts?
Comment 5 Bastien Nocera 2009-11-09 17:09:37 UTC
Isn't that what's already done in update_mount()?
Comment 6 David Zeuthen (not reading bugmail) 2009-11-09 17:18:56 UTC
(In reply to comment #5)
> Isn't that what's already done in update_mount()?

It is. But presumably other volume monitors / mount daemons could (and should) use this code when determining the icon to use. And it seems a lot nicer to just have a single async function with all the business logic (e.g. prioritizing xdg_volume_info before Bluray) hidden inside it.
Comment 7 Bastien Nocera 2009-11-09 19:07:07 UTC
Created attachment 147309 [details] [review]
[common] Loading icon and title on Blu-ray video discs

Using the BDMV/META/DL/bdmt_eng.xml file on BDMV discs,
we can load better names and icons for the disc.

Adds expat requirement to the common library if it is found.
Comment 8 Bastien Nocera 2009-11-09 19:07:13 UTC
Created attachment 147310 [details] [review]
[gdu] Use BDMV icon and name if available

From the mount information, use the BDMV data if it is available.
Comment 9 Bastien Nocera 2009-11-09 19:09:02 UTC
I'd need to add a run-time dependency on iso-codes to be able to load the correct files for the user's language.

Once all this is sorted, I'll look into moving all that code into common/ so it doesn't need to be copied in the various monitors.
Comment 10 David Zeuthen (not reading bugmail) 2009-11-09 19:22:32 UTC
Sounds good to me.

FWIW, I think we should just make expat a hard dependency as a) it will already be available since it is needed for D-Bus (in the bus daemon); and b) it's small; and c) gio clients won't need it.

Alex, is this OK with you?
Comment 11 Bastien Nocera 2009-11-09 19:24:10 UTC
Created attachment 147314 [details]
and with a little icon
Comment 12 Bastien Nocera 2009-11-10 13:35:44 UTC
Attachment 147309 [details] pushed as cc467bf - [common] Loading icon and title on Blu-ray video discs
Attachment 147310 [details] pushed as 3a862fe - [gdu] Use BDMV icon and name if available
Comment 13 Bastien Nocera 2009-11-10 13:58:44 UTC
Waiting on Alex' decision to make expat a hard-dependency, and add support for loading other locales.

Then I'll move the code to get the favourite icon into a separate function as requested by David.
Comment 14 Alexander Larsson 2009-11-18 09:45:53 UTC
I'm fine with a hard dependency on expat. 

I assume GMarkup isn't good enough here?
Comment 15 Bastien Nocera 2009-11-18 10:27:07 UTC
(In reply to comment #14)
> I'm fine with a hard dependency on expat. 

Great, thanks.

> I assume GMarkup isn't good enough here?

My original patch used GMarkup, and it failed to parse the doctypes.
Comment 16 Bastien Nocera 2011-05-16 15:39:54 UTC
I haven't moved anything, as the gdu backend is the only one we now care about, and I already replaced that code with something that uses libbluray to load the files, removing the need for an iso-codes dependency.

Marking as FIXED.