[vlc-commits] aout_PacketNext: fix inverted logic
Rémi Denis-Courmont
git at videolan.org
Wed Aug 10 17:43:22 CEST 2011
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Aug 10 18:37:06 2011 +0300| [4b7f562452a6606113ad17c13c56c5f6fa54a6e9] | committer: Rémi Denis-Courmont
aout_PacketNext: fix inverted logic
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4b7f562452a6606113ad17c13c56c5f6fa54a6e9
---
src/audio_output/output.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/audio_output/output.c b/src/audio_output/output.c
index 0c90444..3cdf969 100644
--- a/src/audio_output/output.c
+++ b/src/audio_output/output.c
@@ -618,10 +618,10 @@ block_t *aout_PacketNext (audio_output_t *p_aout, mtime_t start_date)
aout_packet_t *p = aout_packet (p_aout);
aout_fifo_t *p_fifo = &p->fifo;
block_t *p_buffer;
- const bool b_can_sleek = AOUT_FMT_LINEAR (&p_aout->format);
+ const bool b_can_sleek = !AOUT_FMT_LINEAR(&p_aout->format);
const mtime_t now = mdate ();
const mtime_t threshold =
- (b_can_sleek ? start_date : now) - AOUT_MAX_PTS_DELAY;
+ (b_can_sleek ? now : start_date) - AOUT_MAX_PTS_DELAY;
vlc_mutex_lock( &p->lock );
if( p->pause_date != VLC_TS_INVALID )
More information about the vlc-commits
mailing list