X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=plugins%2Fdvd%2Fdvd_demux.c;h=674906e4bf927a917c0041e09d4405fab5142774;hb=d4f18c4eadb23de73e7ae1d1e2e899cbbfbef567;hp=e57e12ae049f6b90228428d2e50bbb02cc41a324;hpb=aaee289a1ea035520cb85cf25e7ba5c43ebc80b3;p=vlc diff --git a/plugins/dvd/dvd_demux.c b/plugins/dvd/dvd_demux.c index e57e12ae04..674906e4bf 100644 --- a/plugins/dvd/dvd_demux.c +++ b/plugins/dvd/dvd_demux.c @@ -1,7 +1,7 @@ /* dvd_demux.c: DVD demux functions. ***************************************************************************** * Copyright (C) 1998-2001 VideoLAN - * $Id: dvd_demux.c,v 1.3 2002/03/09 16:48:33 stef Exp $ + * $Id: dvd_demux.c,v 1.4 2002/03/18 19:14:52 sam Exp $ * * Author: Stéphane Borel * @@ -88,6 +88,11 @@ void _M( demux_getfunctions)( function_list_t * p_function_list ) *****************************************************************************/ static int DVDInit( input_thread_t * p_input ) { + if( p_input->stream.i_method != INPUT_METHOD_DVD ) + { + return -1; + } + vlc_mutex_lock( &p_input->stream.stream_lock ); DVDLaunchDecoders( p_input );