[vlc-devel] [PATCH 2/2] fix for #15713, checked for i_type, if i_type is ITEM_TYPE_DIRECTORY notification "Now Playing" is not displayed
Avani Sharma
avaninith at gmail.com
Thu Mar 17 21:37:21 CET 2016
---
modules/notify/notify.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/modules/notify/notify.c b/modules/notify/notify.c
index adc6de2..1fe1eb3 100644
--- a/modules/notify/notify.c
+++ b/modules/notify/notify.c
@@ -170,10 +170,16 @@ static int ItemChange( vlc_object_t *p_this, const
char *psz_var,
if( !p_input )
return VLC_SUCCESS;
+
/* Playing something ... */
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){
+ return VLC_SUCCESS;
+ }
+
/* 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/20160318/ec108bc3/attachment.html>
More information about the vlc-devel
mailing list