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
VLMC
Commits
b3586a5c
Commit
b3586a5c
authored
Nov 12, 2009
by
Hugo Beauzee-Luyssen
Browse files
Image files can now be added to the library again.
Metadata are computed correctly.
parent
f25082fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Metadata/MetaDataWorker.cpp
View file @
b3586a5c
...
...
@@ -50,6 +50,7 @@ void MetaDataWorker::run()
{
computeImageMetaData
();
}
m_currentMedia
->
addConstantParam
(
":vout=dummy"
);
m_mediaPlayer
->
setMedia
(
m_currentMedia
->
getVLCMedia
()
);
connect
(
m_mediaPlayer
,
SIGNAL
(
playing
()
),
this
,
SLOT
(
entrypointPlaying
()
)
);
m_mediaPlayer
->
play
();
...
...
@@ -60,8 +61,6 @@ void MetaDataWorker::computeVideoMetaData()
{
//Disabling audio for this specific use of the media
m_currentMedia
->
addVolatileParam
(
":no-audio"
,
":audio"
);
m_currentMedia
->
addConstantParam
(
":vout=dummy"
);
connect
(
m_mediaPlayer
,
SIGNAL
(
lengthChanged
()
),
this
,
SLOT
(
entrypointLengthChanged
()
)
);
}
...
...
@@ -69,6 +68,8 @@ void MetaDataWorker::computeImageMetaData()
{
m_currentMedia
->
addVolatileParam
(
":access=fake"
,
":access=''"
);
m_currentMedia
->
addVolatileParam
(
":fake-duration=10000"
,
":fake-duration=''"
);
//There can't be a length for an image file, so we don't have to wait for it to be updated.
m_lengthHasChanged
=
true
;
}
void
MetaDataWorker
::
getMetaData
()
...
...
Write
Preview
Supports
Markdown
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