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
eef512c2
Commit
eef512c2
authored
Dec 23, 2015
by
Hugo Beauzée-Luyssen
Browse files
IMediaLibrary: Don't allow a media to be fetched through its mrl
parent
d5e8b315
Changes
2
Hide whitespace changes
Inline
Side-by-side
include/IMediaLibrary.h
View file @
eef512c2
...
...
@@ -89,14 +89,6 @@ class IMediaLibrary
* Calling this after initialize() is not a supported scenario.
*/
virtual
void
setFsFactory
(
std
::
shared_ptr
<
factory
::
IFileSystem
>
fsFactory
)
=
0
;
///
/// \brief addFile Adds a file to the media library.
/// \param path The absolute path to this file
/// \param parentFolder The parent folder, or nullptr to add this file as
/// a stand alone file.
/// \return The newly created file, or nullptr in case of error
///
virtual
MediaPtr
file
(
const
std
::
string
&
path
)
=
0
;
/// Adds a folder and all the files it contains
virtual
FolderPtr
folder
(
const
std
::
string
&
path
)
=
0
;
...
...
src/MediaLibrary.h
View file @
eef512c2
...
...
@@ -53,7 +53,7 @@ class MediaLibrary : public IMediaLibrary
std
::
vector
<
MediaPtr
>
files
();
virtual
std
::
vector
<
MediaPtr
>
audioFiles
()
override
;
virtual
std
::
vector
<
MediaPtr
>
videoFiles
()
override
;
virtual
MediaPtr
file
(
const
std
::
string
&
path
)
override
;
MediaPtr
file
(
const
std
::
string
&
path
);
std
::
shared_ptr
<
Media
>
addFile
(
const
std
::
string
&
path
,
Folder
*
parentFolder
);
virtual
bool
deleteFile
(
const
Media
*
file
);
...
...
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