mirror of
https://github.com/mpv-player/mpv
synced 2025-01-16 22:37:28 +01:00
Remove pointless pa_stream_trigger call
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25412 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
fd77e65860
commit
8778005565
@ -256,20 +256,10 @@ static void uninit(int immed) {
|
|||||||
|
|
||||||
/** Play the specified data to the pulseaudio server */
|
/** Play the specified data to the pulseaudio server */
|
||||||
static int play(void* data, int len, int flags) {
|
static int play(void* data, int len, int flags) {
|
||||||
if (len) {
|
|
||||||
if (pa_stream_write(stream, data, len, NULL, 0, PA_SEEK_RELATIVE) < 0) {
|
if (pa_stream_write(stream, data, len, NULL, 0, PA_SEEK_RELATIVE) < 0) {
|
||||||
GENERIC_ERR_MSG(context, "pa_stream_write() failed");
|
GENERIC_ERR_MSG(context, "pa_stream_write() failed");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
pa_operation *o = pa_stream_trigger(stream, NULL, NULL);
|
|
||||||
if (!o) {
|
|
||||||
GENERIC_ERR_MSG(context, "pa_stream_trigger() failed");
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
/* We don't wait for this operation to complete */
|
|
||||||
pa_operation_unref(o);
|
|
||||||
}
|
|
||||||
return len;
|
return len;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user