mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
Fix timeout function signatures across tests and examples
This commit is contained in:
parent
753f8a8ac9
commit
eb7705a48d
7 changed files with 9 additions and 9 deletions
|
@ -23,7 +23,7 @@
|
|||
|
||||
|
||||
static gboolean
|
||||
timeout (GstRTSPServer * server, gboolean ignored)
|
||||
timeout (GstRTSPServer * server)
|
||||
{
|
||||
GstRTSPSessionPool *pool;
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
|
||||
|
||||
static gboolean
|
||||
timeout (GstRTSPServer * server, gboolean ignored)
|
||||
timeout (GstRTSPServer * server)
|
||||
{
|
||||
GstRTSPSessionPool *pool;
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
|
||||
|
||||
static gboolean
|
||||
timeout (GstRTSPServer * server, gboolean ignored)
|
||||
timeout (GstRTSPServer * server)
|
||||
{
|
||||
GstRTSPSessionPool *pool;
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
* pool. This needs to be run explicitly currently but might be done
|
||||
* automatically as part of the mainloop. */
|
||||
static gboolean
|
||||
timeout (GstRTSPServer * server, gboolean ignored)
|
||||
timeout (GstRTSPServer * server)
|
||||
{
|
||||
GstRTSPSessionPool *pool;
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
* pool. This needs to be run explicitly currently but might be done
|
||||
* automatically as part of the mainloop. */
|
||||
static gboolean
|
||||
timeout (GstRTSPServer * server, gboolean ignored)
|
||||
timeout (GstRTSPServer * server)
|
||||
{
|
||||
GstRTSPSessionPool *pool;
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
#include <gst/rtsp-server/rtsp-server.h>
|
||||
|
||||
static gboolean
|
||||
timeout (GMainLoop * loop, gboolean ignored)
|
||||
timeout (GMainLoop * loop)
|
||||
{
|
||||
g_main_loop_quit (loop);
|
||||
return FALSE;
|
||||
|
|
|
@ -23,14 +23,14 @@
|
|||
|
||||
#define TIMEOUT 2
|
||||
|
||||
static gboolean timeout_1 (GMainLoop * loop, gboolean ignored);
|
||||
static gboolean timeout_1 (GMainLoop * loop);
|
||||
|
||||
static guint id;
|
||||
static gint rounds = 3;
|
||||
static GstRTSPServer *server;
|
||||
|
||||
static gboolean
|
||||
timeout_2 (GMainLoop * loop, gboolean ignored)
|
||||
timeout_2 (GMainLoop * loop)
|
||||
{
|
||||
rounds--;
|
||||
if (rounds > 0) {
|
||||
|
@ -44,7 +44,7 @@ timeout_2 (GMainLoop * loop, gboolean ignored)
|
|||
}
|
||||
|
||||
static gboolean
|
||||
timeout_1 (GMainLoop * loop, gboolean ignored)
|
||||
timeout_1 (GMainLoop * loop)
|
||||
{
|
||||
g_source_remove (id);
|
||||
g_print ("have removed\n");
|
||||
|
|
Loading…
Reference in a new issue