mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 20:51:13 +00:00
gst-launch: fix compiler warnings for SIGHUP handlers on windows
Fix unused variable/function compiler warnings on windows. The SIGHUP handling is only available under unix. https://bugzilla.gnome.org/show_bug.cgi?id=783661
This commit is contained in:
parent
78ee0dfad1
commit
92ad74052b
1 changed files with 5 additions and 1 deletions
|
@ -466,9 +466,11 @@ print_toc_entry (gpointer data, gpointer user_data)
|
||||||
g_list_foreach (subentries, print_toc_entry, GUINT_TO_POINTER (indent));
|
g_list_foreach (subentries, print_toc_entry, GUINT_TO_POINTER (indent));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef G_OS_UNIX
|
||||||
|
static guint signal_watch_hup_id;
|
||||||
|
#endif
|
||||||
#if defined(G_OS_UNIX) || defined(G_OS_WIN32)
|
#if defined(G_OS_UNIX) || defined(G_OS_WIN32)
|
||||||
static guint signal_watch_intr_id;
|
static guint signal_watch_intr_id;
|
||||||
static guint signal_watch_hup_id;
|
|
||||||
#if defined(G_OS_WIN32)
|
#if defined(G_OS_WIN32)
|
||||||
static GstElement *intr_pipeline;
|
static GstElement *intr_pipeline;
|
||||||
#endif
|
#endif
|
||||||
|
@ -495,6 +497,7 @@ intr_handler (gpointer user_data)
|
||||||
return G_SOURCE_REMOVE;
|
return G_SOURCE_REMOVE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef G_OS_UNIX
|
||||||
static gboolean
|
static gboolean
|
||||||
hup_handler (gpointer user_data)
|
hup_handler (gpointer user_data)
|
||||||
{
|
{
|
||||||
|
@ -513,6 +516,7 @@ hup_handler (gpointer user_data)
|
||||||
|
|
||||||
return G_SOURCE_CONTINUE;
|
return G_SOURCE_CONTINUE;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(G_OS_WIN32) /* G_OS_UNIX */
|
#if defined(G_OS_WIN32) /* G_OS_UNIX */
|
||||||
static BOOL WINAPI
|
static BOOL WINAPI
|
||||||
|
|
Loading…
Reference in a new issue