Rtsp server: authentication in another thread

Started by
2 comments, last by Tommato 5 years, 1 month ago

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 
*ctx) 
{ 
    /*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? 

Thanks! 
 

Advertisement

Why did you post this in NEHE, NEHE is a very old OpenGL forum.

"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety." --Benjamin Franklin

Ola Crazy!

Thanks.. I will try Stack Overflow.. :)
Tom

This topic is closed to new replies.

Advertisement