input_notify.diff

来自「Last change: 2008-02-03 This is the sou」· DIFF 代码 · 共 25 行

DIFF
25
字号
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 );
 

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?