Help needed with RTSP streaming and g_main_loop
yoyosuper8 at yahoo.com
yoyosuper8 at yahoo.com
Fri Jan 10 06:54:34 PST 2014
Have you tried creating a thread for each stream?
If you want to have multiple mp4 files streaming, I would create four individual threads to do so.
Sent from my Verizon Wireless BlackBerry
-----Original Message-----
From: peter <kyahua2010 at gmail.com>
Sender: gstreamer-devel-bounces at lists.freedesktop.org
Date: Fri, 10 Jan 2014 06:06:06
To: <gstreamer-devel at lists.freedesktop.org>
Reply-To: Discussion of the development of and with GStreamer
<gstreamer-devel at lists.freedesktop.org>
Subject: Help needed with RTSP streaming and g_main_loop
Hi,
I'm writing an application to stream many mp4 files through RTSP. My code is
based on test-mp4.c from examples folder.
1. I'm creating a rstpserver
2. I'm creating a g_main_context
3. Attaching g_main_loop and rtspserver to this context
4. Setting the loop to run
I want to do 1 to 4 in a for loop in my application. But my code hangs after
4 and I can not stream more than one mp4 file
My question is why is g_main_loop not running in the create context but
instead running in main context blocking everything else? How to run
multiple g_main_loop in a single application
Plz help
--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Help-needed-with-RTSP-streaming-and-g-main-loop-tp4664593.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
More information about the gstreamer-devel
mailing list