> + (*p_env)->CallVoidMethod (p_env, p_sys->j_libVlc, methodIdInitAout, > + aout_rate, *nb_channels, FRAME_SIZE); > + if ((*p_env)->ExceptionCheck (p_env) == 0) > + break; Sorry, this is a wrong patch. It doesn't return the modified sample rate.