[vlc-commits] Notify: don't display notification for folders

Avani Sharma git at videolan.org
Tue Mar 29 07:08:36 CEST 2016


vlc | branch: master | Avani Sharma <avaninith at gmail.com> | Mon Mar 28 19:46:05 2016 +0530| [7816da98aabef803c01d33a7f49833c66d571e69] | committer: Jean-Baptiste Kempf

Notify: don't display notification for folders

Fix #15713

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/notify/notify.c |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/modules/notify/notify.c b/modules/notify/notify.c
index adc6de2..bb81138 100644
--- a/modules/notify/notify.c
+++ b/modules/notify/notify.c
@@ -174,6 +174,13 @@ static int ItemChange( vlc_object_t *p_this, const char *psz_var,
     input_item_t *p_input_item = input_GetItem( p_input );
     psz_title = input_item_GetTitleFbName( p_input_item );
 
+    /* Checking for click on directories */
+    if(p_input_item->i_type == ITEM_TYPE_DIRECTORY || p_input_item->i_type == ITEM_TYPE_PLAYLIST
+        || p_input_item->i_type == ITEM_TYPE_NODE || p_input_item->i_type== ITEM_TYPE_UNKNOWN
+        || p_input_item->i_type == ITEM_TYPE_CARD){
+        return VLC_SUCCESS;
+    }
+
     /* We need at least a title */
     if( EMPTY_STR( psz_title ) )
     {



More information about the vlc-commits mailing list