Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
VideoLAN
medialibrary
Commits
26f1552c
Commit
26f1552c
authored
Feb 21, 2018
by
Hugo Beauzée-Luyssen
Browse files
Directory: Don't attempt to access an uncached value
parent
e055c79b
Changes
1
Show whitespace changes
Inline
Side-by-side
src/filesystem/common/CommonDirectory.cpp
View file @
26f1552c
...
...
@@ -61,7 +61,8 @@ std::shared_ptr<IDevice> CommonDirectory::device() const
if
(
m_device
.
isCached
()
==
false
)
{
auto
d
=
m_fsFactory
.
createDeviceFromMrl
(
mrl
()
);
if
(
d
!=
nullptr
)
if
(
d
==
nullptr
)
return
nullptr
;
m_device
=
std
::
move
(
d
);
}
return
m_device
.
get
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment