Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fix audio-only playback

  • Loading branch information...
commit 3cf32e89b6cad9f915bda1820ecc0b94fd6f0cdb 1 parent 1ef81e1
Jean-Yves Avenard jyavenard authored

Showing 1 changed file with 3 additions and 7 deletions. Show diff stats Hide diff stats

  1. +3 7 mythtv/libs/libmythtv/avformatdecoder.cpp
10 mythtv/libs/libmythtv/avformatdecoder.cpp
@@ -3928,10 +3928,6 @@ bool AvFormatDecoder::ProcessAudioPacket(AVStream *curstream, AVPacket *pkt,
3928 3928 int audSubIdx = selectedTrack[kTrackTypeAudio].av_substream_index;
3929 3929 avcodeclock->unlock();
3930 3930
3931   - uint ofill = 0, ototal = 0, othresh = 0, total_decoded_audio = 0;
3932   - allowedquit = (!(decodetype & kDecodeAudio)) &&
3933   - m_audio->IsBufferAlmostFull();
3934   -
3935 3931 if (pkt->dts != (int64_t)AV_NOPTS_VALUE)
3936 3932 pts = (long long)(av_q2d(curstream->time_base) * pkt->dts * 1000);
3937 3933
@@ -4092,9 +4088,9 @@ bool AvFormatDecoder::ProcessAudioPacket(AVStream *curstream, AVPacket *pkt,
4092 4088
4093 4089 m_audio->AddAudioData((char *)audioSamples, data_size, temppts);
4094 4090
4095   - total_decoded_audio += data_size;
4096   -
4097   - allowedquit |= ringBuffer->InDVDMenuOrStillFrame();
  4091 + allowedquit |=
  4092 + ringBuffer->InDVDMenuOrStillFrame() ||
  4093 + m_audio->IsBufferAlmostFull();
4098 4094
4099 4095 tmp_pkt.data += ret;
4100 4096 tmp_pkt.size -= ret;

0 comments on commit 3cf32e8

Please sign in to comment.
Something went wrong with that request. Please try again.