예제 #1
0
파일: video.c 프로젝트: MadFishTheOne/mpv
int reinit_video_filters(struct MPContext *mpctx)
{
    struct sh_video *sh_video = mpctx->sh_video;

    if (!sh_video)
        return -2;

    recreate_video_filters(mpctx);
    video_reinit_vo(sh_video);

    return sh_video->vf_initialized > 0 ? 0 : -1;
}
예제 #2
0
파일: video.c 프로젝트: kuroshishi/mpv
int reinit_video_filters(struct MPContext *mpctx)
{
    struct dec_video *d_video = mpctx->d_video;

    if (!d_video)
        return -2;

    recreate_video_filters(mpctx);
    video_reinit_vo(d_video);

    return d_video->vf_initialized > 0 ? 0 : -1;
}