Skip to content
  • Joan Pau Beltran's avatar
    appsink: add _pull_sample/preroll() variants with timeout · c6722c06
    Joan Pau Beltran authored
    The _pull_sample() and _pull_preroll() functions block
    until a sample is available, EOS happens or the pipeline
    is shut down (returning NULL in the last two cases).
    
    This adds _try_pull_sample() and _try_pull_preroll()
    functions with a timeout argument to specify the maximum
    amount of time to wait for a new sample.
    
    To avoid code duplication, wait forever if the timeout is
    GST_CLOCK_TIME_NONE and use that to implement
    _pull_sample/_pull_preroll with the original behavior.
    
    Add also corresponding action signals "try-pull-sample"
    and "try-pull-preroll".
    
    https://bugzilla.gnome.org/show_bug.cgi?id=768852
    c6722c06