osx_notifications: Coalesce Growl notifications
authorMarvin Scholz <epirat07@gmail.com>
Thu, 22 Oct 2015 16:18:52 +0000 (18:18 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Fri, 23 Oct 2015 09:28:02 +0000 (11:28 +0200)
Set an identifier for the VLC Notifications to make
them coalesce when changing tracks rapidly one
after another. (closes #10386)

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/notify/osx_notifications.m

index 6077f3a..20f7d07 100644 (file)
@@ -390,7 +390,8 @@ static int ItemChange( vlc_object_t *p_this, const char *psz_var,
                                            iconData:coverImageData
                                            priority:0
                                            isSticky:NO
-                                       clickContext:nil];
+                                       clickContext:nil
+                                         identifier:@"VLCNowPlayingNotification"];
         } else {
 #if __MAC_OS_X_VERSION_MAX_ALLOWED >= 1080
             // Make the OS X notification and string