]> git.sesse.net Git - vlc/blobdiff - modules/services_discovery/xcb_apps.c
skins2: fix animated image flickering
[vlc] / modules / services_discovery / xcb_apps.c
index 087bf58ae3d5ea2aca41845f1feb529fcf683714..1db34f5f96257c9328150cae93f521b33462d4bd 100644 (file)
@@ -5,20 +5,20 @@
 /*****************************************************************************
  * Copyright © 2009 Rémi Denis-Courmont
  *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public License
- * as published by the Free Software Foundation; either version 2.1
- * of the License, or (at your option) any later version.
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or
+ * (at your option) any later version.
  *
- * This library is distributed in the hope that it will be useful,
+ * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
+ * GNU Lesser General Public License for more details.
  *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
- ****************************************************************************/
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
+ *****************************************************************************/
 
 #ifdef HAVE_CONFIG_H
 # include <config.h>
@@ -52,7 +52,7 @@ vlc_module_begin ()
     set_capability ("services_discovery", 0)
     set_callbacks (Open, Close)
 
-    add_shortcut ("apps")
+    add_shortcut ("apps", "screen")
 
     VLC_SD_PROBE_SUBMODULE
 vlc_module_end ()
@@ -255,8 +255,7 @@ static struct app *AddApp (services_discovery_t *sd, xcb_window_t xid)
     else
         name = NULL;
 
-    input_item_t *item = input_item_NewWithType (VLC_OBJECT (sd), mrl,
-                                                 name ? name : mrl,
+    input_item_t *item = input_item_NewWithType (mrl, name ? name : mrl,
                                                  0, NULL, 0, -1,
                                                  ITEM_TYPE_CARD /* FIXME */);
     free (mrl);
@@ -349,7 +348,7 @@ static void AddDesktop(services_discovery_t *sd)
 {
     input_item_t *item;
 
-    item = input_item_NewWithType (VLC_OBJECT (sd), "screen://", _("Desktop"),
+    item = input_item_NewWithType ("screen://", _("Desktop"),
                                    0, NULL, 0, -1, ITEM_TYPE_CARD);
     if (item == NULL)
         return;