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

Run SD threads (if any) with cancellation

parent 64d0d7ac
...@@ -209,11 +209,12 @@ static void* RunSD( vlc_object_t *p_this ) ...@@ -209,11 +209,12 @@ static void* RunSD( vlc_object_t *p_this )
.type = vlc_ServicesDiscoveryStarted .type = vlc_ServicesDiscoveryStarted
}; };
int canc = vlc_savecancel (); int canc = vlc_savecancel ();
vlc_event_send( &p_sd->event_manager, &event ); vlc_event_send( &p_sd->event_manager, &event );
vlc_restorecancel (canc);
p_sd->pf_run( p_sd ); p_sd->pf_run( p_sd );
canc = vlc_savecancel ();
event.type = vlc_ServicesDiscoveryEnded; event.type = vlc_ServicesDiscoveryEnded;
vlc_event_send( &p_sd->event_manager, &event ); vlc_event_send( &p_sd->event_manager, &event );
vlc_restorecancel (canc); vlc_restorecancel (canc);
......
Markdown is supported
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