• Sebastian Dröge's avatar
    flacparse: Drain the parser when a CAPS event is received · 336a9715
    Sebastian Dröge authored
    After a CAPS event, in theory a new stream can start and it might start
    with the FLAC headers again. We can't detect FLAC headers in the middle
    of the stream, so we drain the parser to be able to detect either FLAC
    headers after the CAPS event or the continuation of the previous stream.
    
    This fixes for example
    
    gst-launch-1.0 audiotestsrc num-buffers=200 ! flacenc ! c. \
        audiotestsrc num-buffers=200 freq=880 ! flacenc ! c. \
        concat name=c ! rtpgstpay ! udpsink host=127.0.0.1 port=5000
    
    gst-launch-1.0 udpsrc multicast-group=127.0.0.1 port=5000 \
        caps=application/x-rtp,media=application,clock-rate=90000,encoding-name=X-GST ! \
        rtpgstdepay ! flacparse ! flacdec ! audioconvert ! pulsesin
    336a9715
Name
Last commit
Last update
common @ ed78bee4 Loading commit data...
docs Loading commit data...
ext Loading commit data...
gst Loading commit data...
gst-libs/gst Loading commit data...
hooks Loading commit data...
m4 Loading commit data...
pkgconfig Loading commit data...
po Loading commit data...
sys Loading commit data...
tests Loading commit data...
.gitignore Loading commit data...
.gitmodules Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
ChangeLog Loading commit data...
MAINTAINERS Loading commit data...
Makefile.am Loading commit data...
NEWS Loading commit data...
README Loading commit data...
README.static-linking Loading commit data...
RELEASE Loading commit data...
REQUIREMENTS Loading commit data...
autogen.sh Loading commit data...
configure.ac Loading commit data...
gst-plugins-good.doap Loading commit data...
meson.build Loading commit data...
meson_options.txt Loading commit data...