]> git.sesse.net Git - vlc/commitdiff
* all: do not implement DEMUX_SET_TIME. DEMUX_SET_TIME. should be
authorLaurent Aimar <fenrir@videolan.org>
Thu, 1 Apr 2004 23:19:30 +0000 (23:19 +0000)
committerLaurent Aimar <fenrir@videolan.org>
Thu, 1 Apr 2004 23:19:30 +0000 (23:19 +0000)
implemented _only_ when it has a high precision.

modules/demux/a52.c
modules/demux/aac.c
modules/demux/dts.c
modules/demux/flac.c

index 73f83e35265cd89d44164bea5df865e45542e293..aef2c928f6aa2bfadd98124f4a7d7e476cf8dfee 100644 (file)
@@ -2,7 +2,7 @@
  * a52.c : raw A/52 stream input module for vlc
  *****************************************************************************
  * 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>
  *
@@ -274,9 +274,12 @@ static int Demux( demux_t *p_demux )
 static int Control( demux_t *p_demux, int i_query, va_list args )
 {
     demux_sys_t *p_sys  = p_demux->p_sys;
-    return demux2_vaControlHelper( p_demux->s,
-                                   0, -1,
-                                   8*p_sys->i_mux_rate, 1, i_query, args );
+    if( i_query == DEMUX_SET_TIME )
+        return VLC_EGENERIC;
+    else
+        return demux2_vaControlHelper( p_demux->s,
+                                       0, -1,
+                                       8*p_sys->i_mux_rate, 1, i_query, args );
 }
 
 /*****************************************************************************
index 0e41b0d44fc3f22b86eb200e2475c832960fe079..3ae6bf6112e303baa4ab0db0caf8f7333b7adaa1 100644 (file)
@@ -2,7 +2,7 @@
  * aac.c : Raw aac Stream input module for vlc
  *****************************************************************************
  * 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>
  *
@@ -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; */
     /* FIXME calculate the bitrate */
-    return demux2_vaControlHelper( p_demux->s,
-                                   0, -1,
-                                   8*0, 1, i_query, args );
+    if( i_query == DEMUX_SET_TIME )
+        return VLC_EGENERIC;
+    else
+        return demux2_vaControlHelper( p_demux->s,
+                                       0, -1,
+                                       8*0, 1, i_query, args );
 }
 
index 15d0b14c7188cfa97fa76ae0c9d8bca7c9385116..5b9d2f2c0596443fdb57fac79d2b364e89835119 100644 (file)
@@ -2,7 +2,7 @@
  * dts.c : raw DTS stream input module for vlc
  *****************************************************************************
  * 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>
  *
@@ -256,9 +256,12 @@ static int Demux( demux_t *p_demux )
 static int Control( demux_t *p_demux, int i_query, va_list args )
 {
     demux_sys_t *p_sys  = p_demux->p_sys;
-    return demux2_vaControlHelper( p_demux->s,
-                                   0, -1,
-                                   8*p_sys->i_mux_rate, 1, i_query, args );
+    if( i_query == DEMUX_SET_TIME )
+        return VLC_EGENERIC;
+    else
+        return demux2_vaControlHelper( p_demux->s,
+                                       0, -1,
+                                       8*p_sys->i_mux_rate, 1, i_query, args );
 }
 
 /*****************************************************************************
index 8bd7a1cef27bf508029c9647a3607b025a915ccc..5077c5d9809a619e07b1f64a2455c2a2b78f9ae1 100644 (file)
@@ -2,7 +2,7 @@
  * flac.c : FLAC demux module for vlc
  *****************************************************************************
  * 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>
  *
@@ -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; */
     /* FIXME bitrate */
-    return demux2_vaControlHelper( p_demux->s,
-                                   0, -1,
-                                   8*0, 1, i_query, args );
+    if( i_query == DEMUX_SET_TIME )
+        return VLC_EGENERIC;
+    else
+        return demux2_vaControlHelper( p_demux->s,
+                                       0, -1,
+                                       8*0, 1, i_query, args );
 }