]> git.sesse.net Git - vlc/commitdiff
Select the correct input in #display (Closes:#343)
authorClément Stenac <zorglub@videolan.org>
Sat, 17 Sep 2005 13:29:37 +0000 (13:29 +0000)
committerClément Stenac <zorglub@videolan.org>
Sat, 17 Sep 2005 13:29:37 +0000 (13:29 +0000)
The module used FIND_ANYWHERE. The proposed patch solved the bug as a side-effect as you get the latest created input, which is the current one with the proposed patch (wait for init to signal thread as ready)

modules/stream_out/display.c

index 9f56167c38a241b61e34c8146c7cc45c328b4443..9b629ace94fdd52f6c1aff8df9cd08a97e3b1b2b 100644 (file)
@@ -98,7 +98,7 @@ static int Open( vlc_object_t *p_this )
 
     p_sys          = malloc( sizeof( sout_stream_sys_t ) );
     p_sys->p_input = vlc_object_find( p_stream, VLC_OBJECT_INPUT,
-                                      FIND_ANYWHERE );
+                                      FIND_PARENT );
     if( !p_sys->p_input )
     {
         msg_Err( p_stream, "cannot find p_input" );