Browse Source

lavd/pulse_audio_enc: fix flush return code

Successful flushing is reported by returning 1 instead of 0.

Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
tags/n2.2-rc1
Lukasz Marek 12 years ago
parent
commit
398844f093
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavdevice/pulse_audio_enc.c

+ 1
- 1
libavdevice/pulse_audio_enc.c View File

@@ -102,7 +102,7 @@ static int pulse_write_packet(AVFormatContext *h, AVPacket *pkt)
av_log(s, AV_LOG_ERROR, "pa_simple_flush failed: %s\n", pa_strerror(error));
return AVERROR(EIO);
}
return 0;
return 1;
}

if (pkt->dts != AV_NOPTS_VALUE)


Loading…
Cancel
Save