[vlc-commits] smooth: remove unused cancellation preemption
Rémi Denis-Courmont
git at videolan.org
Thu Jul 9 18:33:20 CEST 2015
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Jul 9 18:57:07 2015 +0300| [872a08d51cf07a868448054e3f5d668de524de43] | committer: Rémi Denis-Courmont
smooth: remove unused cancellation preemption
vlc_cancel() is not used, so this was a no-op.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=872a08d51cf07a868448054e3f5d668de524de43
---
modules/stream_filter/smooth/downloader.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/modules/stream_filter/smooth/downloader.c b/modules/stream_filter/smooth/downloader.c
index d8ee725..99b61e7 100644
--- a/modules/stream_filter/smooth/downloader.c
+++ b/modules/stream_filter/smooth/downloader.c
@@ -601,8 +601,6 @@ void* sms_Thread( void *p_this )
stream_t *s = (stream_t *)p_this;
stream_sys_t *p_sys = s->p_sys;
- int canc = vlc_savecancel();
-
chunk_t *init_ck = build_init_chunk( s );
if( !init_ck )
goto cancel;
@@ -682,12 +680,9 @@ void* sms_Thread( void *p_this )
}
else
vlc_mutex_unlock( &p_sys->lock );
-
- vlc_testcancel();
}
cancel:
msg_Dbg(s, "Canceling download thread!");
- vlc_restorecancel( canc );
return NULL;
}
More information about the vlc-commits
mailing list