www.pudn.com > kceasy-0.19-rc1-src.rar > input_notify.diff


Index: src/input/input.c 
=================================================================== 
--- src/input/input.c	(revision 9350) 
+++ src/input/input.c	(working copy) 
@@ -318,6 +318,9 @@ 
         /* If we failed, wait before we are killed, and exit */ 
         p_input->b_error = VLC_TRUE; 
  
+        /* Give interface a chance to detect that we failed */ 
+        var_SetBool( p_input, "intf-change", VLC_TRUE ); 
+ 
         Error( p_input ); 
  
         /* Tell we're dead */ 
@@ -934,6 +937,9 @@ 
     val.i_int = END_S; 
     var_Change( p_input, "state", VLC_VAR_SETVALUE, &val, NULL ); 
  
+    /* Tell interface that we have finished */ 
+    var_SetBool( p_input, "intf-change", VLC_TRUE ); 
+ 
     /* Clean control variables */ 
     input_ControlVarClean( p_input );