[vlc-commits] macosx: Video filter: Correctly determine type of variable

David Fuhrmann git at videolan.org
Sun Dec 10 23:26:32 CET 2017


vlc | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Sun Dec 10 18:05:25 2017 +0100| [54152cecfa047e18f4b7cc70569ed3b0ee689de5] | committer: David Fuhrmann

macosx: Video filter: Correctly determine type of variable

Due to uninitialized variable, type was not detected correctly.
Consequently, the playlist variables for video effects were not
set correctly.

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

 modules/gui/macosx/VLCCoreInteraction.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/gui/macosx/VLCCoreInteraction.m b/modules/gui/macosx/VLCCoreInteraction.m
index 2aff35a737..636095a6a5 100644
--- a/modules/gui/macosx/VLCCoreInteraction.m
+++ b/modules/gui/macosx/VLCCoreInteraction.m
@@ -806,7 +806,7 @@ static int BossCallback(vlc_object_t *p_this, const char *psz_var,
     playlist_t *p_playlist = pl_Get(p_intf);
     if (!p_intf)
         return;
-    int i_type;
+    int i_type = 0;
     bool b_is_command = false;
     char const *psz_filter_type = [self getFilterType: psz_filter];
     if (!psz_filter_type) {



More information about the vlc-commits mailing list