Skip to content

Commit

Permalink
stream-interaction: Remove useless condition
Browse files Browse the repository at this point in the history
Signed-off-by: Sangchul Lee
  • Loading branch information
sangchul1011 authored and georgchini committed Mar 26, 2019
1 parent 65cc86f commit a56c8a1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/modules/stream-interaction.c
Expand Up @@ -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))
Expand Down

0 comments on commit a56c8a1

Please sign in to comment.