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:
maroy 2005-09-05 09:02:57 +00:00
parent 9b7f42866b
commit 4d09eb1fa2

View file

@ -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,6 +342,8 @@ 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;