[vlc-commits] Win32: avoid warning about "pidfile"

Rémi Denis-Courmont git at videolan.org
Sat Feb 8 22:53:03 CET 2014


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Feb  8 23:52:30 2014 +0200| [4d756c68e54439a44ef611cdfb7e4f95bc7f10ff] | committer: Rémi Denis-Courmont

Win32: avoid warning about "pidfile"

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4d756c68e54439a44ef611cdfb7e4f95bc7f10ff
---

 src/interface/interface.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/interface/interface.c b/src/interface/interface.c
index b68c9cf..5e733e1 100644
--- a/src/interface/interface.c
+++ b/src/interface/interface.c
@@ -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."));
         }



More information about the vlc-commits mailing list