~ubuntu-branches/ubuntu/wily/mpv/wily

« back to all changes in this revision

Viewing changes to video/decode/vaapi.c

  • Committer: Package Import Robot
  • Author(s): Alessandro Ghedini
  • Date: 2014-06-15 14:35:14 UTC
  • mfrom: (1.1.20)
  • Revision ID: package-import@ubuntu.com-20140615143514-mfg19trfv7dixw52
Tags: 0.3.11-1
* New upstream release
* Drop gcc-4.8 Build-Depends for sparc (Closes: #751321)

Show diffs side-by-side

added added

removed removed

Lines of Context:
334
334
 
335
335
static void destroy_va_dummy_ctx(struct priv *p)
336
336
{
 
337
    va_destroy(p->ctx);
 
338
    p->ctx = NULL;
 
339
    p->display = NULL;
337
340
    if (p->x11_display)
338
341
        XCloseDisplay(p->x11_display);
339
342
    p->x11_display = NULL;
340
 
    va_destroy(p->ctx);
341
 
    p->ctx = NULL;
342
343
}
343
344
 
344
345
// Creates a "private" VADisplay, disconnected from the VO. We just create a
372
373
 
373
374
    destroy_decoder(ctx);
374
375
    va_surface_pool_release(p->pool);
 
376
    p->pool = NULL;
375
377
 
376
378
    if (p->x11_display)
377
379
        destroy_va_dummy_ctx(p);