Hi
I am trying to trying to stream via some video files through gst-rtsp-server
in a thread. I am trying to understand whether gst-rtsp-server lib usage
would require the usage of GMainLoop. As in, the framework you should adopt
would be as follows:
GMainLoop *loop;
gst_init (&argc, &argv);
loop = g_main_loop_new (NULL, FALSE);
// do whatever u need
// create and set rtsp server, mount point
// connect signal and create callback
// ..........
g_main_loop_run (loop);
Or could you not use GMainLoop? Understand that in Gstreamer, using
GMainLoop and g_main_loop_run() is not a must but rather for convenience ie
you can code something like
int main()
{
// do whatever u need
// create and set rtsp server, mount point
// connect signal and create callback
// ..........
while(1)
{
//wait for event and respond accordingly
}
}
Extra query, do you need to also create a new GMainContext and set for this
thread? I am rather not familiar with coding for Glib and Gobject
Thanks
--
Sent from:
http://gstreamer-devel.966125.n4.nabble.com/_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel