Jump to content
  • Advertisement

Rtsp server: authentication in another thread

Recommended Posts

Hi All,

My application returns data for authentification in another thread. 

I use: 

    auth = gst_rtsp_auth_new(); 
    GstRTSPAuthClass* klass = GST_RTSP_AUTH_GET_CLASS(auth); 
    klass->authenticate = authentificateAndAuthorizeAsync; 

gboolean authentificateAndAuthorizeAsync(GstRTSPAuth *auth, GstRTSPContext 
    /*can send required answer in another thread*/     
    return true; 

How can I use asynchronous authentification  without blocking first thread. 

C++-tools like condition_variables and future/promise are not attractive, as 
far as they blocks first thread. 

Maybe GStreamer can handle it natively? 


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!