Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
VLMC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
21
Issues
21
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
VideoLAN
VLMC
Commits
6b0c72b9
Commit
6b0c72b9
authored
Apr 02, 2014
by
Hugo Beauzée-Luyssen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Library: Save media list from Library class & ensure they are saved with their workspace path
parent
8593ed1f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
11 deletions
+5
-11
src/Library/Library.cpp
src/Library/Library.cpp
+5
-1
src/Media/Media.cpp
src/Media/Media.cpp
+0
-8
src/Media/Media.h
src/Media/Media.h
+0
-2
No files found.
src/Library/Library.cpp
View file @
6b0c72b9
...
...
@@ -94,7 +94,11 @@ Library::save( QXmlStreamWriter& project )
project
.
writeStartElement
(
"medias"
);
while
(
it
!=
end
)
{
it
.
value
()
->
getMedia
()
->
save
(
project
);
Q_ASSERT
(
(
*
it
)
->
isRootClip
()
==
true
);
const
Media
*
m
=
(
*
it
)
->
getMedia
();
project
.
writeStartElement
(
"media"
);
project
.
writeAttribute
(
"mrl"
,
m_workspace
->
toWorkspacePath
(
m
)
);
project
.
writeEndElement
();
++
it
;
}
project
.
writeEndElement
();
...
...
src/Media/Media.cpp
View file @
6b0c72b9
...
...
@@ -111,14 +111,6 @@ Media::source() const
return
m_source
;
}
void
Media
::
save
(
QXmlStreamWriter
&
project
)
{
project
.
writeStartElement
(
"media"
);
project
.
writeAttribute
(
"mrl"
,
m_fileInfo
->
absoluteFilePath
()
);
project
.
writeEndElement
();
}
void
Media
::
setBaseClip
(
Clip
*
clip
)
{
...
...
src/Media/Media.h
View file @
6b0c72b9
...
...
@@ -95,8 +95,6 @@ public:
const
Clip
*
baseClip
()
const
{
return
m_baseClip
;
}
void
setBaseClip
(
Clip
*
clip
);
void
save
(
QXmlStreamWriter
&
project
);
void
onMetaDataComputed
();
// This has to be called from the GUI thread.
...
...
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