pa_strerror (pa_context_errno (pulsesink->context))), (NULL));
goto unlock_and_fail;
}
+ pulsesink->corked = TRUE;
for (;;) {
pa_stream_state_t state;
pulsesink->in_write = TRUE;
/* Make sure the stream is uncorked - it might not be on a caps change */
- if (pa_stream_is_corked (pulsesink->stream)) {
+ if (pulsesink->corked) {
if (!(o = pa_stream_cork (pulsesink->stream, FALSE, NULL, NULL))) {
GST_ELEMENT_ERROR (pulsesink, RESOURCE, FAILED,
("pa_stream_cork() failed: %s",
goto unlock_and_fail;
pa_threaded_mainloop_wait (pulsesink->mainloop);
}
+ pulsesink->corked = FALSE;
pa_operation_unref (o);
o = NULL;
goto unlock;
pa_threaded_mainloop_wait (pulsesink->mainloop);
}
+ pulsesink->corked = b;
unlock:
if (o)