• Myoungsun Lee's avatar
    decodebin: Handle the preroll multi-queue size · 5c8ef0ea
    Myoungsun Lee authored
    There are some of interleaved streams which has long-term location of audio data.
    It mean the audio data is located far away more than multiqueue size.
    In this case, because of multiqueue overrun, the pipeline is stopped.
    To prevent hanging-like state, the decodebin needs to handle the queue size.
    The multiqueue size is not enough, the pipeline will stay being stalled status
    and decodebin cannot complete to build decode chain.
    In this issue file, decodebin did not receive no_more_pads signal or audio data yet.
    Steps to Reproduce:
    play the high-resolution(4K file) files or some streaming media(push mode).
    Actual Results:
    There is no audio or subtitle.
    We can see only video or infinite loading.
    Decodebin detect this problem, and add extra buffer size to multiqueue.
    The multiqueue is larger than before, the next data can be pushed the downstream element.
    Additional Information:
    The max-preroll extra buffer size is set 8MB.
    We can use total pre-roll buffer 10MB.
    Only first overrun callback can handle multiqueue size.
gstdecodebin2.c 165 KB