]> git.sesse.net Git - vlc/commitdiff
Win32: avoid warning about "pidfile"
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 8 Feb 2014 21:52:30 +0000 (23:52 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 8 Feb 2014 21:53:03 +0000 (23:53 +0200)
src/interface/interface.c

index b68c9cf887ab3a7195755115cb78ebd4c3a3836c..5e733e1ba5bf748832820d1ea3f984e12b8a913d 100644 (file)
@@ -197,10 +197,12 @@ int libvlc_InternalAddIntf(libvlc_int_t *libvlc, const char *name)
         char *intf = var_InheritString(libvlc, "intf");
         if (intf == NULL) /* "intf" has not been set */
         {
+#if !defined(_WIN32) && !defined(__OS2__)
             char *pidfile = var_InheritString(libvlc, "pidfile");
             if (pidfile != NULL)
                 free(pidfile);
             else
+#endif
                 msg_Info(libvlc, _("Running vlc with the default interface. "
                          "Use 'cvlc' to use vlc without interface."));
         }