[vlc-commits] commit: Use var_Inherit* when applicable. ( Rémi Duraffort )

git at videolan.org git at videolan.org
Sat Oct 30 19:21:19 CEST 2010


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Wed Oct 27 18:19:15 2010 +0200| [91a47fa968e61598ba35853206fd10528b8f74e4] | committer: Rémi Duraffort 

Use var_Inherit* when applicable.

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

 modules/video_output/fb.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/modules/video_output/fb.c b/modules/video_output/fb.c
index 1423224..2d54669 100644
--- a/modules/video_output/fb.c
+++ b/modules/video_output/fb.c
@@ -186,11 +186,11 @@ static int Open(vlc_object_t *object)
         return VLC_ENOMEM;
 
     /* Does the framebuffer uses hw acceleration? */
-    sys->is_hw_accel = var_CreateGetBool(vd, "fb-hw-accel");
+    sys->is_hw_accel = var_InheritBool(vd, "fb-hw-accel");
 
     /* Set tty and fb devices */
     sys->tty = 0; /* 0 == /dev/tty0 == current console */
-    sys->is_tty = var_CreateGetBool(vd, "fb-tty");
+    sys->is_tty = var_InheritBool(vd, "fb-tty");
 #if !defined(WIN32) &&  defined(HAVE_ISATTY)
     /* Check that stdin is a TTY */
     if (sys->is_tty && !isatty(0)) {
@@ -202,7 +202,7 @@ static int Open(vlc_object_t *object)
                  "there is no way to return to the TTY");
 #endif
 
-    const int mode = var_CreateGetInteger(vd, "fb-mode");
+    const int mode = var_InheritInteger(vd, "fb-mode");
     bool force_resolution = true;
     switch (mode) {
     case 0: /* QCIF */
@@ -227,7 +227,7 @@ static int Open(vlc_object_t *object)
         break;
     }
 
-    char *chroma = var_CreateGetNonEmptyString(vd, "fb-chroma");
+    char *chroma = var_InheritString(vd, "fb-chroma");
     if (chroma) {
         sys->chroma = vlc_fourcc_GetCodecFromString(VIDEO_ES, chroma);
 



More information about the vlc-commits mailing list