~ubuntu-branches/ubuntu/vivid/gstreamer-vaapi/vivid

« back to all changes in this revision

Viewing changes to tests/simple-decoder.c

  • Committer: Package Import Robot
  • Author(s): Vincent Cheng
  • Date: 2014-08-06 23:56:00 UTC
  • mfrom: (0.1.4 sid) (1.1.3)
  • Revision ID: package-import@ubuntu.com-20140806235600-fg1kcmiu67k315q5
Tags: 0.5.9-2
* Remove spurious build-deps: libva-drm1, libavcodec-dev. (Closes: #757283)
* Drop Build-Depends-Indep and build docs unconditionally on all archs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 *  simple-decoder.c - Simple Decoder Application
3
3
 *
4
 
 *  Copyright (C) 2013 Intel Corporation
 
4
 *  Copyright (C) 2013-2014 Intel Corporation
5
5
 *    Author: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
6
6
 *
7
7
 *  This library is free software; you can redistribute it and/or
396
396
 
397
397
    g_timer_start(app->timer);
398
398
 
399
 
    app->decoder_thread = g_thread_create(decoder_thread, app, TRUE, NULL);
 
399
    app->decoder_thread = g_thread_try_new("Decoder Thread", decoder_thread,
 
400
        app, NULL);
400
401
    if (!app->decoder_thread)
401
402
        return FALSE;
402
403
    return TRUE;
571
572
static gboolean
572
573
start_renderer(App *app)
573
574
{
574
 
    app->render_thread = g_thread_create(renderer_thread, app, TRUE, NULL);
 
575
    app->render_thread = g_thread_try_new("Renderer Thread", renderer_thread,
 
576
        app, NULL);
575
577
    if (!app->render_thread)
576
578
        return FALSE;
577
579
    return TRUE;