listening to variable while transmitting video

d dudi017 at gmail.com
Fri Jan 31 04:18:54 PST 2014


Hi,

I have main function and thread,

the main function get commands from client (works fine) 
and the thread that transmits video fluently to the client (works fine)

I need that the main function will pass th command to the thread with
transmitting video, the thread read that command and react accordingly-
play\ pause.
 
now, after  "gst_element_set_state (pipeline, GST_STATE_PLAYING);"
the thread will start transmitting the video:

  void *thread_function(void * variable) 
   {
      ...
      ...
      ...
     gst_element_set_state (pipeline, GST_STATE_PLAYING);
  
     ....
     ....
     gst_object_unref (bus);
     gst_element_set_state (pipeline, GST_STATE_NULL);
     gst_object_unref (pipeline);
     return 0;

   }


how do I make the thread to listen to some command_variable from the main
*while its transmitting video*?
is the thread "stuck" on the " gst_element_set_state" (like while(1)) ?
the thread suppose to get that command_variable from the main function and
react accordingly.

thanks!




--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/listening-to-variable-while-transmitting-video-tp4665003.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list