Skip to content

Commit

Permalink
cefsrc: Fix macOS build
Browse files Browse the repository at this point in the history
  • Loading branch information
amyspark committed Oct 31, 2024
1 parent e2d30e4 commit 411f9e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gstcefsrc.cc
Original file line number Diff line number Diff line change
Expand Up @@ -845,10 +845,10 @@ gst_cef_src_change_state(GstElement *src, GstStateChange transition)
/* in the main thread as per Cocoa */
if (pthread_main_np()) {
g_mutex_unlock (&init_lock);
run_cef ((GstCefSrc*) src);
init_cef ((GstCefSrc*) src);
g_mutex_lock (&init_lock);
} else {
dispatch_async_f(dispatch_get_main_queue(), (GstCefSrc*)src, (dispatch_function_t)&run_cef);
dispatch_async_f(dispatch_get_main_queue(), (GstCefSrc*)src, (dispatch_function_t)&init_cef);
while (cef_status == CEF_STATUS_INITIALIZING)
g_cond_wait (&init_cond, &init_lock);
}
Expand Down

0 comments on commit 411f9e4

Please sign in to comment.