added support for clipStart and clipEnd
This commit is contained in:
parent
f6c9fef31a
commit
761b27d594
1 changed files with 19 additions and 15 deletions
|
@ -317,25 +317,29 @@ private:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!begin) {
|
audioDescription = new AudioDescription();
|
||||||
begin = "0s";
|
if(begin)
|
||||||
}
|
{
|
||||||
if (!clipBegin) {
|
audioDescription->m_begin = su_smil_clock_value_to_nanosec(begin);
|
||||||
clipBegin = "0s";
|
}
|
||||||
}
|
if(clipBegin)
|
||||||
if (!clipEnd) {
|
{
|
||||||
clipEnd = "0s";
|
audioDescription->m_clipBegin = su_smil_clock_value_to_nanosec(clipBegin);
|
||||||
}
|
}
|
||||||
audioDescription = new AudioDescription();
|
if(clipEnd)
|
||||||
audioDescription->m_src = src;
|
{
|
||||||
audioDescription->m_begin = su_smil_clock_value_to_nanosec(begin);
|
audioDescription->m_clipEnd = su_smil_clock_value_to_nanosec(clipEnd);
|
||||||
audioDescription->m_clipBegin = su_smil_clock_value_to_nanosec(clipBegin);
|
if(audioDescription->m_clipEnd <= 0)//clip end can never be 0, force it to -1
|
||||||
audioDescription->m_clipEnd = su_smil_clock_value_to_nanosec(clipEnd);
|
{
|
||||||
|
audioDescription->m_clipEnd = -1;
|
||||||
|
}
|
||||||
|
}
|
||||||
if(idStr)
|
if(idStr)
|
||||||
{
|
{
|
||||||
std::stringstream idReader(idStr);
|
std::stringstream idReader(idStr);
|
||||||
idReader >> audioDescription->m_Id;
|
idReader >> audioDescription->m_Id;
|
||||||
}
|
}
|
||||||
|
audioDescription->m_src = src;
|
||||||
// now handle the possible animate elements inside this audio element
|
// now handle the possible animate elements inside this audio element
|
||||||
for (node = audio->children; node; node = node->next) {
|
for (node = audio->children; node; node = node->next) {
|
||||||
if (node->type == XML_ELEMENT_NODE) {
|
if (node->type == XML_ELEMENT_NODE) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue