diff --git a/src/pulsecore/sink-input.c b/src/pulsecore/sink-input.c index af15ae21997e49b47aa5c1d268c1f3b44c08a428..d479c8e8eeae0ae6092eb45480c95adbcbf3dede 100644 --- a/src/pulsecore/sink-input.c +++ b/src/pulsecore/sink-input.c @@ -632,8 +632,6 @@ int pa_sink_input_new( i->thread_info.dont_rewrite = false; i->origin_rewind_bytes = 0; - pa_atomic_store(&i->isFirstReaded, 0); - pa_assert_se(pa_idxset_put(core->sink_inputs, i, &i->index) == 0); pa_assert_se(pa_idxset_put(i->sink->inputs, pa_sink_input_ref(i), NULL) == 0); @@ -2749,7 +2747,7 @@ void pa_sink_input_set_preferred_sink(pa_sink_input *i, pa_sink *s) { } void pa_sink_input_handle_ohos_underrun(pa_sink_input *i) { - if (i->process_underrun_ohos && (pa_atomic_load(&i->isFirstReaded) == 1)) { + if (i->process_underrun_ohos) { i->process_underrun_ohos(i); } } diff --git a/src/pulsecore/sink-input.h b/src/pulsecore/sink-input.h index b6f4f0b563a00619dacac7c965b3b2f0ea5e9567..c7e3d793bc375d35e078a662472767b689e64152 100644 --- a/src/pulsecore/sink-input.h +++ b/src/pulsecore/sink-input.h @@ -283,8 +283,6 @@ struct pa_sink_input { } thread_info; void *userdata; - - pa_atomic_t isFirstReaded; }; PA_DECLARE_PUBLIC_CLASS(pa_sink_input);