recording 39 cameras with separate processes

Nicolas Dufresne nicolas at ndufresne.ca
Mon Oct 9 02:06:52 UTC 2017


> Le 8 oct. 2017 à 21:10, killerrats <koreysjunkmail at gmail.com> a écrit :
> 
> figured out that when i used a thread for popping the bus messages it caused
> the cpu to jump up. if I used the gst_bus_add_signal_watch instead it made
> the cpu usage a lot less. I was trying to figure out what the difference
> would be between them.
> 
> in the thread use i would use a do while with no sleep. how does the
> g_signal_connect (bus, "message", G_CALLBACK (bus_cb), POINTER); without
> using so much cpu usage?
> 

One can use gst_bus_timed_pop() to block until the next message arrived. The signal will use the poll the GSource obtained from gst_buf_create_watch().

> 
> 
> --
> Sent from: http://gstreamer-devel.966125.n4.nabble.com/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



More information about the gstreamer-devel mailing list