Skip to content

Instantly share code, notes, and snippets.

diff --git a/src/libbluray/disc/disc.c b/src/libbluray/disc/disc.c
index 6d555a1..dd8e5a5 100644
--- a/src/libbluray/disc/disc.c
+++ b/src/libbluray/disc/disc.c
@@ -283,7 +283,7 @@ static BD_DISC *_disc_init()
static void _set_paths(BD_DISC *p, const char *device_path)
{
if (device_path) {
- char *disc_root = mount_get_mountpoint(device_path);
+ char *disc_root = str_dup(device_path);