diff options
-rw-r--r-- | common/gvfsmountinfo.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/common/gvfsmountinfo.c b/common/gvfsmountinfo.c index 2c365516..ca4d8685 100644 --- a/common/gvfsmountinfo.c +++ b/common/gvfsmountinfo.c @@ -481,6 +481,7 @@ bdmv_metadata_thread (GSimpleAsyncResult *result, char *icon; char *name; const char *lang; + char *path; file = G_FILE (object); @@ -493,6 +494,16 @@ bdmv_metadata_thread (GSimpleAsyncResult *result, goto error; } + path = g_build_filename (disc_root, "BDMV", NULL); + if (!g_file_test (path, G_FILE_TEST_IS_DIR)) + { + error = g_error_new_literal (G_IO_ERROR, + G_IO_ERROR_FAILED, + "Device is not a Blu-Ray disc"); + goto error; + } + g_free (path); + bd = bd_open (disc_root, NULL); g_free (disc_root); |