Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
VideoLAN
medialibrary
Commits
499261b3
Commit
499261b3
authored
Jul 09, 2018
by
Hugo Beauzée-Luyssen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ml factory: Ensure no exception is thrown
parent
46194099
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
src/Factory.cpp
src/Factory.cpp
+9
-1
No files found.
src/Factory.cpp
View file @
499261b3
...
...
@@ -28,5 +28,13 @@
extern
"C"
medialibrary
::
IMediaLibrary
*
NewMediaLibrary
()
{
return
new
medialibrary
::
MediaLibrary
();
try
{
return
new
medialibrary
::
MediaLibrary
();
}
catch
(
const
std
::
exception
&
ex
)
{
LOG_ERROR
(
"Failed to instantiate medialibrary: "
,
ex
.
what
()
);
}
return
nullptr
;
}
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