From 3d331406f8bffee78f2f5fc32eec44e810ebf50c Mon Sep 17 00:00:00 2001 From: Laurent Aimar Date: Tue, 22 Jun 2004 19:31:54 +0000 Subject: [PATCH] * all: rework of the input. --- src/interface/interface.c | 4 +--- src/libvlc.c | 8 +++----- src/video_output/video_output.c | 7 +++++++ src/video_output/vout_synchro.c | 8 ++++---- 4 files changed, 15 insertions(+), 12 deletions(-) diff --git a/src/interface/interface.c b/src/interface/interface.c index 3e34e12521..458431d2da 100644 --- a/src/interface/interface.c +++ b/src/interface/interface.c @@ -37,9 +37,7 @@ #include /* strerror() */ #include - -#include "stream_control.h" -#include "input_ext-intf.h" +#include #include "audio_output.h" diff --git a/src/libvlc.c b/src/libvlc.c index 82e38e0a88..07a5e5f706 100644 --- a/src/libvlc.c +++ b/src/libvlc.c @@ -35,6 +35,7 @@ * Preamble *****************************************************************************/ #include +#include #ifdef HAVE_ERRNO_H # include /* ENOMEM */ @@ -66,9 +67,6 @@ #include "vlc_error.h" -#include "stream_control.h" -#include "input_ext-intf.h" - #include "vlc_playlist.h" #include "vlc_interface.h" @@ -1337,7 +1335,7 @@ float VLC_SpeedFaster( int i_object ) vlc_object_release( p_input ); if( i_object ) vlc_object_release( p_vlc ); - return val.f_float / DEFAULT_RATE; + return val.f_float / INPUT_RATE_DEFAULT; } /** @@ -1375,7 +1373,7 @@ float VLC_SpeedSlower( int i_object ) vlc_object_release( p_input ); if( i_object ) vlc_object_release( p_vlc ); - return val.f_float / DEFAULT_RATE; + return val.f_float / INPUT_RATE_DEFAULT; } /** diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c index 1ab932ebd1..bbbefde101 100644 --- a/src/video_output/video_output.c +++ b/src/video_output/video_output.c @@ -1376,6 +1376,8 @@ static int DeinterlaceCallback( vlc_object_t *p_this, char const *psz_cmd, var_Set( p_input, "deinterlace-mode", val ); } + /* FIXME FIXME input2 --fenrir */ +#if 0 /* now restart all video streams */ vlc_mutex_lock( &p_input->stream.stream_lock ); @@ -1395,6 +1397,7 @@ static int DeinterlaceCallback( vlc_object_t *p_this, char const *psz_cmd, vlc_mutex_unlock( &p_input->stream.stream_lock ); vlc_object_release( p_input ); +#endif val.b_bool = VLC_TRUE; var_Set( p_vout, "intf-change", val ); @@ -1417,6 +1420,9 @@ static int FilterCallback( vlc_object_t *p_this, char const *psz_cmd, msg_Err( p_vout, "Input not found" ); return( VLC_EGENERIC ); } + + /* FIXME FIXME input2 --fenrir */ +#if 0 /* Restart the video stream */ vlc_mutex_lock( &p_input->stream.stream_lock ); @@ -1436,6 +1442,7 @@ static int FilterCallback( vlc_object_t *p_this, char const *psz_cmd, vlc_mutex_unlock( &p_input->stream.stream_lock ); vlc_object_release( p_input ); +#endif val.b_bool = VLC_TRUE; var_Set( p_vout, "intf-change", val ); diff --git a/src/video_output/vout_synchro.c b/src/video_output/vout_synchro.c index 7035415ff4..94d396b6fd 100644 --- a/src/video_output/vout_synchro.c +++ b/src/video_output/vout_synchro.c @@ -2,7 +2,7 @@ * vout_synchro.c : frame dropping routines ***************************************************************************** * Copyright (C) 1999-2004 VideoLAN - * $Id: vout_synchro.c,v 1.7 2004/01/25 17:16:06 zorglub Exp $ + * $Id$ * * Authors: Christophe Massiot * Samuel Hocevar @@ -99,9 +99,9 @@ #include #include +#include #include "vout_synchro.h" -#include "stream_control.h" /* * Local prototypes @@ -182,7 +182,7 @@ vlc_bool_t vout_SynchroChoose( vout_synchro_t * p_synchro, int i_coding_type, now = mdate(); period = 1000000 * 1001 / p_synchro->i_frame_rate - * p_synchro->i_current_rate / DEFAULT_RATE; + * p_synchro->i_current_rate / INPUT_RATE_DEFAULT; p_synchro->i_render_time = i_render_time; @@ -350,7 +350,7 @@ void vout_SynchroNewPicture( vout_synchro_t * p_synchro, int i_coding_type, mtime_t next_dts, int i_current_rate ) { mtime_t period = 1000000 * 1001 / p_synchro->i_frame_rate - * i_current_rate / DEFAULT_RATE; + * i_current_rate / INPUT_RATE_DEFAULT; #if 0 mtime_t now = mdate(); #endif -- GitLab