[vlc-devel] Accessing the demux Control at the interface level ? (re: RTSP trickplay)
Glen Gray
slaine at slaine.org
Fri Dec 14 20:25:46 CET 2007
Laurent Aimar wrote:
> I did not commit that part as it wasn't part of rate control:
>
> @@ -1247,9 +1263,13 @@
>
> case DEMUX_SET_PAUSE_STATE:
> {
> - double d_npt = (double) p_sys->i_npt / I64C(1000000);
> + double d_npt;
> int i;
>
> + d_npt = 0.0;
> + if( var_CreateGetBool( p_demux, "rtsp-kasenna" ) == VLC_FALSE )
> + d_npt = (double) p_sys->i_npt / I64C(1000000);
> +
> b_bool = (vlc_bool_t)va_arg( args, vlc_bool_t );
> if( p_sys->rtsp == NULL )
> return VLC_EGENERIC;
>
> What is it for ?
>
This goes right back to the original patchset I created for adding
trickplay specifically for Kasenna servers. It's probably no longer
required actually. These trickplay patches go way back to the
pre-release of 0.8.4 and at the time, I needed to ensure that d_npt was
0 so that in the playMediaSession call further down, a -1 was passed
over. IIRC we had problems where d_npt wasn't 0 and so when we
un-paused, we wheren't resuming from the exact same spot.
if( ( b_bool && !p_sys->rtsp->pauseMediaSession( *p_sys->ms
) ) ||
( !b_bool && !p_sys->rtsp->playMediaSession( *p_sys->ms,
d_npt > 0 ? d_npt : -1 ) ) )
--
Glen Gray (slaine at slaine.org)
More information about the vlc-devel
mailing list