]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
revert one mutex code (from coverity fixes)
authorJaroslav Kysela <perex@perex.cz>
Sun, 22 Mar 2015 20:09:10 +0000 (21:09 +0100)
committerJaroslav Kysela <perex@perex.cz>
Sun, 22 Mar 2015 20:09:10 +0000 (21:09 +0100)
src/subscriptions.c

index 256054c47fb5f036346286875ffcaafc6db8a85e..40aaa6befa67668909f150d8e6462bb8a08cde42 100644 (file)
@@ -466,11 +466,8 @@ subscription_input(void *opauqe, streaming_message_t *sm)
       if(s->ths_start_message != NULL) {
         streaming_target_deliver(s->ths_output, s->ths_start_message);
         s->ths_start_message = NULL;
-        if (s->ths_service) {
-          pthread_mutex_lock(&s->ths_service->s_stream_mutex);
+        if (s->ths_service)
           s->ths_service->s_running = 1;
-          pthread_mutex_unlock(&s->ths_service->s_stream_mutex);
-        }
       }
       s->ths_state = SUBSCRIPTION_GOT_SERVICE;
     }