for openned audio clip position and length, sometimes a null reference
was returned. now a valid time reference of 00:00:00.0000 is returned see http://bugs.campware.org/view.php?id=1442
This commit is contained in:
parent
9b7f42866b
commit
4d09eb1fa2
1 changed files with 6 additions and 2 deletions
|
@ -22,7 +22,7 @@
|
||||||
|
|
||||||
|
|
||||||
Author : $Author: maroy $
|
Author : $Author: maroy $
|
||||||
Version : $Revision: 1.11 $
|
Version : $Revision: 1.12 $
|
||||||
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/playlistExecutor/src/GstreamerPlayer.cxx,v $
|
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/playlistExecutor/src/GstreamerPlayer.cxx,v $
|
||||||
|
|
||||||
------------------------------------------------------------------------------*/
|
------------------------------------------------------------------------------*/
|
||||||
|
@ -342,8 +342,10 @@ GstreamerPlayer :: getPlaylength(void) throw (std::logic_error)
|
||||||
|
|
||||||
// use microsec, as nanosec() is not found by the compiler (?)
|
// use microsec, as nanosec() is not found by the compiler (?)
|
||||||
length.reset(new time_duration(microsec(ns / 1000LL)));
|
length.reset(new time_duration(microsec(ns / 1000LL)));
|
||||||
|
} else {
|
||||||
|
length.reset(new time_duration(microsec(0LL)));
|
||||||
}
|
}
|
||||||
|
|
||||||
return length;
|
return length;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -368,6 +370,8 @@ GstreamerPlayer :: getPosition(void) throw (std::logic_error)
|
||||||
|
|
||||||
// use microsec, as nanosec() is not found by the compiler (?)
|
// use microsec, as nanosec() is not found by the compiler (?)
|
||||||
length.reset(new time_duration(microsec(ns / 1000LL)));
|
length.reset(new time_duration(microsec(ns / 1000LL)));
|
||||||
|
} else {
|
||||||
|
length.reset(new time_duration(microsec(0LL)));
|
||||||
}
|
}
|
||||||
|
|
||||||
return length;
|
return length;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue