Chained Ogg FLAC playback stops after first title
Playing a chained OGG containing FLAC, VLC will stop after the first title, not managing the transition to the next title in the chained ogg file.
== Steps to reproduce
Download sample Open sample in VLC Listen until the next file starts or seek forward
== Expected result
VLC should play back the file as expected even after the first title ended
== Actual result
VLC does not manage the transition to the next title, playing only silence till the end of the file.
== Logs
[00007fe0e9cb9ad0] ogg demux debug: end of a group of logical streams
[00007fe0e9cb9ad0] ogg demux debug: File length is 58733837 bytes
[00007fe0e9cb9ad0] ogg demux debug: found FLAC header version 1.0 (3 header packets)
[00007fe0e9cb9ad0] ogg demux debug: FLAC header, channels: 2, rate: 44100
[00007fe0e9cb9ad0] ogg demux debug: beginning of a group of logical streams
[00007fe0e9cbbfa0] flac packetizer debug: emulated sync word
[00007fe0e9cb9ad0] ogg demux debug: will reuse old stream to avoid glitch
[00007fe0e9cb9ad0] ogg demux warning: cannot reuse old stream, resetting the decoder
[00007fe0e9cbb4d0] core decoder debug: killing decoder fourcc `flac'
[00007fe0e9cbb4d0] core decoder debug: removing module "flac"
[00007fe0e9cc9f60] core audio resampler debug: removing module "samplerate"
[00007fe0e9ebc770] core audio converter debug: removing module "audio_format"
[00007fe0e9ccb680] core audio filter debug: removing module "scaletempo"
[00007fe0e9cc9bd0] core generic debug: removing module "samplerate"
[00007fe0e9c26040] auhal audio output debug: Stopping the auhal module
[00007fe0ed93d7a0] core volume debug: removing module "float_mixer"
[00007fe0e9e12e10] core playlist debug: keeping audio output
[00007fe0e9cbbfa0] core packetizer debug: removing module "flac"
[00007fe0ed9636d0] core decoder debug: looking for audio decoder module matching "any": 21 candidates
[00007fe0ed9636d0] core decoder debug: using audio decoder module "flac"
[00007fe0e9cb9ad0] ogg demux warning: Invalid FLAC in ogg detected. Restarting ES with packetizer.
[00007fe0ed9636d0] core decoder debug: killing decoder fourcc `flac'
[00007fe0ed9636d0] core decoder debug: removing module "flac"
[00007fe0eba590f0] core input debug: Program doesn't contain anymore ES
[00007fe0e9ea6e10] core packetizer debug: looking for packetizer module matching "any": 24 candidates
[00007fe0e9ea6e10] core packetizer debug: using packetizer module "flac"
[00007fe0e9ec62d0] core decoder debug: looking for audio decoder module matching "any": 21 candidates
[00007fe0e9ec62d0] core decoder debug: using audio decoder module "flac"
[00007fe0e9cb9ad0] ogg demux warning: Consider increasing access caching variable from 1000 to >405426
[00007fe0e9ec62d0] flac decoder debug: decode STREAMINFO
[00007fe0e9ec62d0] flac decoder debug: channels:2 samplerate:44100 bitspersamples:16
[00007fe0e9ec62d0] flac decoder debug: STREAMINFO decoded
[00007fe0e9ec62d0] flac decoder warning: an error in the stream caused the decoder to lose synchronization.
[00007fe0e9e12e10] core playlist debug: reusing audio output
[00007fe0e9c26040] core audio output debug: VLC is looking for: 'f32l' 44100 Hz Stereo frame=1 samples/8 bytes
[00007fe0e9c26040] auhal audio output debug: attempting to use device 0
[00007fe0e9c26040] auhal audio output debug: using default audio device 47
[00007fe0e9c26040] coreaudio_common audio output debug: output layout of AUHAL is Stereo
[00007fe0e9c26040] coreaudio_common audio output debug: selected 2 physical channels for device output
[00007fe0e9c26040] coreaudio_common audio output debug: VLC will output: Stereo
[00007fe0e9c26040] coreaudio_common audio output debug: Current AU format: [44100,000000][mcpl][9][8][1][8][2][32]
[00007fe0e9c26040] coreaudio_common audio output debug: Current device has a latency of 317 us
[00007fe0e9c26040] auhal audio output debug: analog output successfully opened
[00007fe0e9c26040] core audio output debug: output 'f32l' 44100 Hz Stereo frame=1 samples/8 bytes
[00007fe0ede004b0] core volume debug: looking for audio volume module matching "any": 2 candidates
[00007fe0ede004b0] core volume debug: using audio volume module "float_mixer"
[00007fe0e9c26040] core audio output debug: input 's32l' 44100 Hz Stereo frame=1 samples/8 bytes
[00007fe0e9ebc770] core audio filter debug: looking for audio filter module matching "scaletempo": 16 candidates
[00007fe0e9ebc770] scaletempo audio filter debug: format: 44100 rate, 2 nch, 4 bps, fl32
[00007fe0e9ebc770] scaletempo audio filter debug: params: 30 stride, 0,200 overlap, 14 search
[00007fe0e9ebc770] scaletempo audio filter debug: 1,000 scale, 1323,000 stride_in, 1323 stride_out, 1059 standing, 264 overlap, 617 search, 2204 queue, fl32 mode
[00007fe0e9e09f60] core generic debug: looking for audio resampler module matching "any": 3 candidates
[00007fe0e9e09f60] core generic debug: using audio resampler module "samplerate"
[00007fe0e9ebc770] core audio filter debug: using audio filter module "scaletempo"
[00007fe0e9c26040] core audio output debug: conversion: 's32l'->'f32l' 44100 Hz->44100 Hz Stereo->Stereo
[00007fe0e9e829a0] core audio converter debug: looking for audio converter module matching "any": 8 candidates
[00007fe0e9e829a0] audio_format audio converter debug: s32l->f32l, bits per sample: 32->32
[00007fe0e9e829a0] core audio converter debug: using audio converter module "audio_format"
[00007fe0e9c26040] core audio output debug: conversion pipeline complete
[00007fe0e9c26040] core audio output debug: conversion: 'f32l'->'f32l' 44100 Hz->44100 Hz Stereo->Stereo
[00007fe0e9c26040] core audio output debug: conversion pipeline complete
[00007fe0e9ebb9c0] core audio resampler debug: looking for audio resampler module matching "any": 3 candidates
[00007fe0e9ebb9c0] core audio resampler debug: using audio resampler module "samplerate"
[00007fe0e9c26040] core audio output warning: buffer too late (-404031691 us): dropped
[00007fe0e9c26040] core audio output warning: buffer too late (-403939042 us): dropped
[00007fe0e9c26040] core audio output warning: buffer too late (-403846370 us): dropped
[buffer too late messages continue until the file is stopped, no audio is output]
== Sample
Chained OGG with different codecs, issue happens as soon as it reaches the FLAC part: https://streams.videolan.org/issues/chainedOgg/test1.ogg
Chained OGG with FLAC codec only, issue happens as soon as it reaches the next FLAC part: https://streams.videolan.org/issues/chainedOgg/test2.ogg