mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-09 08:55:33 +00:00
examples: test-uri: don't remove mount point after 10 seconds
It's very irritating when trying to test stuff repeatedly and serves no real purpose other than showing that it can be done.
This commit is contained in:
parent
5377dd2b78
commit
a862d632b7
1 changed files with 7 additions and 2 deletions
|
@ -45,6 +45,7 @@ timeout (GstRTSPServer * server)
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
#if 0
|
||||
static gboolean
|
||||
remove_map (GstRTSPServer * server)
|
||||
{
|
||||
|
@ -57,6 +58,7 @@ remove_map (GstRTSPServer * server)
|
|||
|
||||
return FALSE;
|
||||
}
|
||||
#endif
|
||||
|
||||
int
|
||||
main (int argc, char *argv[])
|
||||
|
@ -110,9 +112,12 @@ main (int argc, char *argv[])
|
|||
|
||||
/* do session cleanup every 2 seconds */
|
||||
g_timeout_add_seconds (2, (GSourceFunc) timeout, server);
|
||||
/* remove the mount point after 10 seconds, new clients won't be able to use the
|
||||
* /test url anymore */
|
||||
|
||||
#if 0
|
||||
/* remove the mount point after 10 seconds, new clients won't be able to use
|
||||
* the /test url anymore */
|
||||
g_timeout_add_seconds (10, (GSourceFunc) remove_map, server);
|
||||
#endif
|
||||
|
||||
/* start serving */
|
||||
g_print ("stream ready at rtsp://127.0.0.1:%s/test\n", port);
|
||||
|
|
Loading…
Reference in a new issue