[vlc-devel] commit: Run SD threads (if any) with cancellation ( Rémi Denis-Courmont )
git version control
git at videolan.org
Thu Aug 28 21:39:20 CEST 2008
vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Thu Aug 28 22:41:28 2008 +0300| [5c93ab388765e7913aeed4bcb19128237c26f387] | committer: Rémi Denis-Courmont
Run SD threads (if any) with cancellation
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5c93ab388765e7913aeed4bcb19128237c26f387
---
src/playlist/services_discovery.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/playlist/services_discovery.c b/src/playlist/services_discovery.c
index 35feabc..229f984 100644
--- a/src/playlist/services_discovery.c
+++ b/src/playlist/services_discovery.c
@@ -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);
More information about the vlc-devel
mailing list