Commit 6e2ae6f2 authored by Laurent Aimar's avatar Laurent Aimar

* all: do not implement DEMUX_SET_TIME. DEMUX_SET_TIME. should be

implemented _only_ when it has a high precision.
parent 07bc2fbd
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* a52.c : raw A/52 stream input module for vlc * a52.c : raw A/52 stream input module for vlc
***************************************************************************** *****************************************************************************
* Copyright (C) 2001 VideoLAN * Copyright (C) 2001 VideoLAN
* $Id: a52.c,v 1.8 2004/03/03 20:39:51 gbazin Exp $ * $Id$
* *
* Authors: Gildas Bazin <gbazin@netcourrier.com> * Authors: Gildas Bazin <gbazin@netcourrier.com>
* *
...@@ -274,9 +274,12 @@ static int Demux( demux_t *p_demux ) ...@@ -274,9 +274,12 @@ static int Demux( demux_t *p_demux )
static int Control( demux_t *p_demux, int i_query, va_list args ) static int Control( demux_t *p_demux, int i_query, va_list args )
{ {
demux_sys_t *p_sys = p_demux->p_sys; demux_sys_t *p_sys = p_demux->p_sys;
return demux2_vaControlHelper( p_demux->s, if( i_query == DEMUX_SET_TIME )
0, -1, return VLC_EGENERIC;
8*p_sys->i_mux_rate, 1, i_query, args ); else
return demux2_vaControlHelper( p_demux->s,
0, -1,
8*p_sys->i_mux_rate, 1, i_query, args );
} }
/***************************************************************************** /*****************************************************************************
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* aac.c : Raw aac Stream input module for vlc * aac.c : Raw aac Stream input module for vlc
***************************************************************************** *****************************************************************************
* Copyright (C) 2001-2003 VideoLAN * Copyright (C) 2001-2003 VideoLAN
* $Id: aac.c,v 1.11 2004/03/03 20:39:51 gbazin Exp $ * $Id$
* *
* Authors: Laurent Aimar <fenrir@via.ecp.fr> * Authors: Laurent Aimar <fenrir@via.ecp.fr>
* *
...@@ -263,8 +263,11 @@ static int Control( demux_t *p_demux, int i_query, va_list args ) ...@@ -263,8 +263,11 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
{ {
/* demux_sys_t *p_sys = p_demux->p_sys; */ /* demux_sys_t *p_sys = p_demux->p_sys; */
/* FIXME calculate the bitrate */ /* FIXME calculate the bitrate */
return demux2_vaControlHelper( p_demux->s, if( i_query == DEMUX_SET_TIME )
0, -1, return VLC_EGENERIC;
8*0, 1, i_query, args ); else
return demux2_vaControlHelper( p_demux->s,
0, -1,
8*0, 1, i_query, args );
} }
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* dts.c : raw DTS stream input module for vlc * dts.c : raw DTS stream input module for vlc
***************************************************************************** *****************************************************************************
* Copyright (C) 2001 VideoLAN * Copyright (C) 2001 VideoLAN
* $Id: dts.c,v 1.12 2004/03/03 20:39:51 gbazin Exp $ * $Id$
* *
* Authors: Gildas Bazin <gbazin@netcourrier.com> * Authors: Gildas Bazin <gbazin@netcourrier.com>
* *
...@@ -256,9 +256,12 @@ static int Demux( demux_t *p_demux ) ...@@ -256,9 +256,12 @@ static int Demux( demux_t *p_demux )
static int Control( demux_t *p_demux, int i_query, va_list args ) static int Control( demux_t *p_demux, int i_query, va_list args )
{ {
demux_sys_t *p_sys = p_demux->p_sys; demux_sys_t *p_sys = p_demux->p_sys;
return demux2_vaControlHelper( p_demux->s, if( i_query == DEMUX_SET_TIME )
0, -1, return VLC_EGENERIC;
8*p_sys->i_mux_rate, 1, i_query, args ); else
return demux2_vaControlHelper( p_demux->s,
0, -1,
8*p_sys->i_mux_rate, 1, i_query, args );
} }
/***************************************************************************** /*****************************************************************************
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* flac.c : FLAC demux module for vlc * flac.c : FLAC demux module for vlc
***************************************************************************** *****************************************************************************
* Copyright (C) 2001-2003 VideoLAN * Copyright (C) 2001-2003 VideoLAN
* $Id: flac.c,v 1.13 2004/03/03 20:39:51 gbazin Exp $ * $Id$
* *
* Authors: Gildas Bazin <gbazin@netcourrier.com> * Authors: Gildas Bazin <gbazin@netcourrier.com>
* *
...@@ -223,8 +223,11 @@ static int Control( demux_t *p_demux, int i_query, va_list args ) ...@@ -223,8 +223,11 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
{ {
/* demux_sys_t *p_sys = p_demux->p_sys; */ /* demux_sys_t *p_sys = p_demux->p_sys; */
/* FIXME bitrate */ /* FIXME bitrate */
return demux2_vaControlHelper( p_demux->s, if( i_query == DEMUX_SET_TIME )
0, -1, return VLC_EGENERIC;
8*0, 1, i_query, args ); else
return demux2_vaControlHelper( p_demux->s,
0, -1,
8*0, 1, i_query, args );
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment