[vlc-devel] commit: Revert "(live555) Fix seeking" (Christophe Mutricy )

git version control git at videolan.org
Tue Nov 25 23:31:58 CET 2008


vlc | branch: 0.9-bugfix | Christophe Mutricy <xtophe at videolan.org> | Tue Nov 25 22:25:12 2008 +0000| [5aa6f64e024aeb8a723bac2a04fb8dc71f29aef7] | committer: Christophe Mutricy 

Revert "(live555) Fix seeking"

This reverts commit 36e06224b0d29631f42708fb91e0a75dc562efc6.

New features that are not self-contained and modify src/ are not
welcomed in -bugfix branches without pre-existent consensus.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5aa6f64e024aeb8a723bac2a04fb8dc71f29aef7
---

 modules/demux/live555.cpp |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/modules/demux/live555.cpp b/modules/demux/live555.cpp
index 2880986..ae7212f 100644
--- a/modules/demux/live555.cpp
+++ b/modules/demux/live555.cpp
@@ -1277,9 +1277,14 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
 
                 /* Retrieve the starttime if possible */
                 p_sys->i_npt_start = (int64_t)( p_sys->ms->playStartTime() * (double)1000000.0 );
+                if( p_sys->i_npt_start < 0 )
+                    p_sys->i_npt_start = -1;
+                else p_sys->i_npt = p_sys->i_npt_start;
 
                 /* Retrieve the duration if possible */
                 p_sys->i_npt_length = (int64_t)( p_sys->ms->playEndTime() * (double)1000000.0 );
+                if( p_sys->i_npt_length < 0 )
+                    p_sys->i_npt_length = -1;
 
                 msg_Dbg( p_demux, "seek start: %lld stop:%lld", p_sys->i_npt_start, p_sys->i_npt_length );
                 return VLC_SUCCESS;




More information about the vlc-devel mailing list