stream-interaction: Remove useless condition
authorSangchul Lee <sangchul1011@gmail.com>
Tue, 26 Mar 2019 14:14:19 +0000 (23:14 +0900)
committerGeorg Chini <georg@chini.tk>
Tue, 26 Mar 2019 14:54:15 +0000 (14:54 +0000)
Signed-off-by: Sangchul Lee
src/modules/stream-interaction.c

index a69b1228abe552f804e1a80817515e5446835329..993b4c3b2a68bec651b96c4f494ff45ab5349db6 100644 (file)
@@ -273,8 +273,7 @@ static pa_hook_result_t process(struct userdata *u, pa_object *stream, bool crea
 
     if (!create)
         for (j = 0; j < u->n_groups; j++)
-            if (pa_sink_input_isinstance(stream))
-                pa_hashmap_remove(u->groups[j]->interaction_state, stream);
+            pa_hashmap_remove(u->groups[j]->interaction_state, stream);
 
     if ((pa_sink_input_isinstance(stream) && !PA_SINK_INPUT(stream)->sink) ||
         (pa_source_output_isinstance(stream) && !PA_SOURCE_OUTPUT(stream)->source))