[vlc-devel] [PATCH] fix for #15713, checked for time duration, if time duration not present, implies directory else song item

Avani Sharma avaninith at gmail.com
Thu Mar 17 10:57:43 CET 2016


---
 modules/notify/notify.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/modules/notify/notify.c b/modules/notify/notify.c
index adc6de2..b6f3958 100644
--- a/modules/notify/notify.c
+++ b/modules/notify/notify.c
@@ -172,8 +172,11 @@ static int ItemChange( vlc_object_t *p_this, const
char *psz_var,

     /* Playing something ... */
     input_item_t *p_input_item = input_GetItem( p_input );
+    /* Checking for click on directories*/
+    if(!input_item_GetDuration(p_input_item) > 0){
+        return VLC_SUCCESS;
+    }
     psz_title = input_item_GetTitleFbName( p_input_item );
-
     /* We need at least a title */
     if( EMPTY_STR( psz_title ) )
     {
-- 
2.1.4
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20160317/018b9749/attachment.html>


More information about the vlc-devel mailing list