Commit 5c93ab38 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

Run SD threads (if any) with cancellation

parent 64d0d7ac
......@@ -209,11 +209,12 @@ static void* RunSD( vlc_object_t *p_this )
.type = vlc_ServicesDiscoveryStarted
};
int canc = vlc_savecancel ();
vlc_event_send( &p_sd->event_manager, &event );
vlc_restorecancel (canc);
p_sd->pf_run( p_sd );
canc = vlc_savecancel ();
event.type = vlc_ServicesDiscoveryEnded;
vlc_event_send( &p_sd->event_manager, &event );
vlc_restorecancel (canc);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment