~ubuntu-branches/ubuntu/saucy/gstreamer0.10/saucy

« back to all changes in this revision

Viewing changes to tests/benchmarks/gstbufferstress.c

  • Committer: Package Import Robot
  • Author(s): Sebastian Dröge
  • Date: 2011-12-11 18:52:12 UTC
  • mfrom: (32.1.14 experimental)
  • Revision ID: package-import@ubuntu.com-20111211185212-3k215ps4qtyz2qa5
Tags: 0.10.35.2-1
* New upstream pre-release:
  + debian/control.in:
    - Build-depend on GLib >= 2.24.
  + debian/patches/99_ltmain_as-needed.patch:
    - Refreshed to apply cleanly again.
  + debian/libgstreamer.symbols:
    - Update symbols file with new API.
* debian/rules:
  + Remove all dependency_libs from the .la files (Closes: #633319).
* debian/control.in:
  + Put GI package into section introspection.
* debian/compat,
  debian/control.in,
  debian/gir1.2-gstreamer.install,
  debian/libgstreamer-dev.install,
  debian/libgstreamer.install,
  debian/patches/79_multiarch-backwards-compat.patch,
  debian/patches/80_ia32-hack.patch,
  debian/rules:
  + Transition package to multi-arch (Closes: #647481).
    Patch taken from the Ubuntu package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
#include <stdio.h>
21
21
#include <stdlib.h>
22
22
#include <gst/gst.h>
 
23
#include "gst/glib-compat-private.h"
23
24
 
24
25
#define MAX_THREADS  1000
25
26
 
95
96
  for (t = 0; t < num_threads; t++) {
96
97
    GError *error = NULL;
97
98
 
 
99
#if !GLIB_CHECK_VERSION (2, 31, 0)
98
100
    threads[t] = g_thread_create (run_test, GINT_TO_POINTER (t), TRUE, &error);
 
101
#else
 
102
    threads[t] = g_thread_try_new ("bufferstresstest", run_test,
 
103
        GINT_TO_POINTER (t), &error);
 
104
#endif
99
105
    if (error) {
100
106
      printf ("ERROR: g_thread_create() %s\n", error->message);
101
107
      exit (-1);