コード例 #1
0
ファイル: vo_opengl_cb.c プロジェクト: AppleNuts/mpv
static void frame_queue_drop_all(struct mpv_opengl_cb_context *ctx)
{
    int frames = ctx->queued_frames;
    frame_queue_clear(ctx);
    if (ctx->active && frames > 0)
        vo_increment_drop_count(ctx->active, frames);
}
コード例 #2
0
ファイル: vo_opengl_cb.c プロジェクト: htc550605125/mpv
static void forget_frames(struct mpv_opengl_cb_context *ctx, bool all)
{
    pthread_cond_broadcast(&ctx->wakeup);
    frame_queue_clear(ctx);
    talloc_free(ctx->waiting_frame);
    ctx->waiting_frame = NULL;
    if (all) {
        talloc_free(ctx->cur_frame);
        ctx->cur_frame = NULL;
    }
}
コード例 #3
0
ファイル: vo_opengl_cb.c プロジェクト: AppleNuts/mpv
static void forget_frames(struct mpv_opengl_cb_context *ctx)
{
    frame_queue_clear(ctx);
    mp_image_unrefp(&ctx->waiting_frame);
}
コード例 #4
0
static void forget_frames(struct mpv_opengl_cb_context *ctx)
{
    pthread_cond_broadcast(&ctx->wakeup);
    frame_queue_clear(ctx);
    mp_image_unrefp(&ctx->waiting_frame);
}