Commit 872a08d5 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

smooth: remove unused cancellation preemption

vlc_cancel() is not used, so this was a no-op.
parent 5451f733
...@@ -601,8 +601,6 @@ void* sms_Thread( void *p_this ) ...@@ -601,8 +601,6 @@ void* sms_Thread( void *p_this )
stream_t *s = (stream_t *)p_this; stream_t *s = (stream_t *)p_this;
stream_sys_t *p_sys = s->p_sys; stream_sys_t *p_sys = s->p_sys;
int canc = vlc_savecancel();
chunk_t *init_ck = build_init_chunk( s ); chunk_t *init_ck = build_init_chunk( s );
if( !init_ck ) if( !init_ck )
goto cancel; goto cancel;
...@@ -682,12 +680,9 @@ void* sms_Thread( void *p_this ) ...@@ -682,12 +680,9 @@ void* sms_Thread( void *p_this )
} }
else else
vlc_mutex_unlock( &p_sys->lock ); vlc_mutex_unlock( &p_sys->lock );
vlc_testcancel();
} }
cancel: cancel:
msg_Dbg(s, "Canceling download thread!"); msg_Dbg(s, "Canceling download thread!");
vlc_restorecancel( canc );
return NULL; return NULL;
} }
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