Skip to content
  • miv's avatar
    Fix pull_api mode · ac6b2112
    miv authored and Jean-Marc Valin's avatar Jean-Marc Valin committed
    
    
    ope_encoder_create_pull calls ope_encoder_create_callbacks with a
    NULL callbacks argument, which causes the function to crash. Test
    for NULL to prevent this.
    
    As well, we try and call the close callback when flushing the stream,
    which also leads to a crash when the callbacks are not set. Don't call
    the callback in pull mode.
    
    Signed-off-by: default avatarJean-Marc Valin <jmvalin@jmvalin.ca>
    ac6b2112