[vlc-devel] commit: Add new var_Change action: VLC_VAR_SETISCOMMAND. Previously it was only (Antoine Cellerier )

git version control git at videolan.org
Mon Jun 9 10:03:50 CEST 2008


vlc | branch: master | Antoine Cellerier <dionoea at videolan.org> | Sun Jun  8 00:00:01 2008 +0200| [3e3d877613cb0d0fba70343464c96a6a10abf411]

Add new var_Change action: VLC_VAR_SETISCOMMAND. Previously it was only
possible to set this attribute at variable creation time (and for some
reason I don't understand that didn't work in one case so I added this
work arround :p)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3e3d877613cb0d0fba70343464c96a6a10abf411
---

 include/vlc_variables.h |    2 ++
 src/misc/variables.c    |    4 ++++
 2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/include/vlc_variables.h b/include/vlc_variables.h
index be20c47..04196fd 100644
--- a/include/vlc_variables.h
+++ b/include/vlc_variables.h
@@ -106,6 +106,8 @@
 
 #define VLC_VAR_INHERITVALUE        0x0030
 #define VLC_VAR_TRIGGER_CALLBACKS   0x0035
+
+#define VLC_VAR_SETISCOMMAND        0x0040
 /**@}*/
 
 /*****************************************************************************
diff --git a/src/misc/variables.c b/src/misc/variables.c
index 2bd2055..45d15cf 100644
--- a/src/misc/variables.c
+++ b/src/misc/variables.c
@@ -710,6 +710,10 @@ int __var_Change( vlc_object_t *p_this, const char *psz_name,
             }
             break;
 
+        case VLC_VAR_SETISCOMMAND:
+            p_var->i_type |= VLC_VAR_ISCOMMAND;
+            break;
+
         default:
             break;
     }




More information about the vlc-devel mailing list