[vlc-commits] prepaser: use input vars instead of controls
Thomas Guillem
git at videolan.org
Thu Jul 12 12:08:34 CEST 2018
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Thu Jul 12 11:22:43 2018 +0200| [ade7b823adb5c75208ee1c89594056f63fa032b1] | committer: Thomas Guillem
prepaser: use input vars instead of controls
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ade7b823adb5c75208ee1c89594056f63fa032b1
---
src/preparser/preparser.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/preparser/preparser.c b/src/preparser/preparser.c
index 4331aae441..ee9699618c 100644
--- a/src/preparser/preparser.c
+++ b/src/preparser/preparser.c
@@ -76,7 +76,8 @@ static int PreparserOpenInput( void* preparser_, void* item_, void** out )
static int PreparserProbeInput( void* preparser_, void* input_ )
{
- int state = input_GetState( input_ );
+ input_thread_t* input = input_;
+ int state = var_GetInteger( input, "state" );
return state == END_S || state == ERROR_S;
VLC_UNUSED( preparser_ );
}
@@ -90,7 +91,7 @@ static void PreparserCloseInput( void* preparser_, void* input_ )
var_DelCallback( input, "intf-event", InputEvent, preparser->worker );
int status;
- switch( input_GetState( input ) )
+ switch( var_GetInteger( input, "state" ) )
{
case END_S:
status = ITEM_PREPARSE_DONE;
More information about the vlc-commits
mailing list