From 4d09eb1fa20e4b8c7f718b64cf8ebad4aeaa0596 Mon Sep 17 00:00:00 2001 From: maroy Date: Mon, 5 Sep 2005 09:02:57 +0000 Subject: [PATCH] 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 --- .../modules/playlistExecutor/src/GstreamerPlayer.cxx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/livesupport/modules/playlistExecutor/src/GstreamerPlayer.cxx b/livesupport/modules/playlistExecutor/src/GstreamerPlayer.cxx index c51b1ad6d..cf178865e 100644 --- a/livesupport/modules/playlistExecutor/src/GstreamerPlayer.cxx +++ b/livesupport/modules/playlistExecutor/src/GstreamerPlayer.cxx @@ -22,7 +22,7 @@ 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 $ ------------------------------------------------------------------------------*/ @@ -342,8 +342,10 @@ GstreamerPlayer :: getPlaylength(void) throw (std::logic_error) // use microsec, as nanosec() is not found by the compiler (?) length.reset(new time_duration(microsec(ns / 1000LL))); + } else { + length.reset(new time_duration(microsec(0LL))); } - + return length; } @@ -368,6 +370,8 @@ GstreamerPlayer :: getPosition(void) throw (std::logic_error) // use microsec, as nanosec() is not found by the compiler (?) length.reset(new time_duration(microsec(ns / 1000LL))); + } else { + length.reset(new time_duration(microsec(0LL))); } return length;