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

« back to all changes in this revision

Viewing changes to gst/gst.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:
217
217
}
218
218
 
219
219
static gboolean
220
 
parse_debug_level (gchar * str, gint * level)
 
220
parse_debug_level (gchar * str, GstDebugLevel * level)
221
221
{
222
222
  if (!str)
223
223
    return FALSE;
227
227
 
228
228
  if (str[0] != NUL && str[1] == NUL
229
229
      && str[0] >= '0' && str[0] < '0' + GST_LEVEL_COUNT) {
230
 
    *level = str[0] - '0';
 
230
    *level = (GstDebugLevel) (str[0] - '0');
231
231
    return TRUE;
232
232
  }
233
233
 
249
249
      gchar **values = g_strsplit (*walk, ":", 2);
250
250
 
251
251
      if (values[0] && values[1]) {
252
 
        gint level;
 
252
        GstDebugLevel level;
253
253
        const gchar *category;
254
254
 
255
255
        if (parse_debug_category (values[0], &category)
259
259
 
260
260
      g_strfreev (values);
261
261
    } else {
262
 
      gint level;
 
262
      GstDebugLevel level;
263
263
 
264
264
      if (parse_debug_level (*walk, &level))
265
265
        gst_debug_set_default_threshold (level);
360
360
    {NULL}
361
361
  };
362
362
 
 
363
/* Since GLib 2.31.0 threading is always enabled and g_thread_init()
 
364
 * is not needed any longer and deprecated */
 
365
#if !GLIB_CHECK_VERSION (2, 31, 0)
363
366
  /* Since GLib 2.23.2 calling g_thread_init() 'late' is allowed and is
364
367
   * automatically done as part of g_type_init() */
365
368
  if (glib_check_version (2, 23, 3)) {
381
384
  } else {
382
385
    /* GLib >= 2.23.2 */
383
386
  }
 
387
#endif
384
388
 
385
389
  group = g_option_group_new ("gst", _("GStreamer Options"),
386
390
      _("Show GStreamer Options"), NULL, NULL);
424
428
#endif
425
429
  gboolean res;
426
430
 
 
431
#if !GLIB_CHECK_VERSION (2, 31, 0)
427
432
  if (!g_thread_get_initialized ())
428
433
    g_thread_init (NULL);
 
434
#endif
429
435
 
430
436
  if (gst_initialized) {
431
437
    GST_DEBUG ("already initialized gst");
574
580
 
575
581
  g_type_init ();
576
582
 
 
583
#if !GLIB_CHECK_VERSION (2, 31, 0)
577
584
  /* we need threading to be enabled right here */
578
585
  g_assert (g_thread_get_initialized ());
 
586
#endif
579
587
 
580
588
  _gst_debug_init ();
581
589
 
902
910
    }
903
911
#ifndef GST_DISABLE_GST_DEBUG
904
912
    case ARG_DEBUG_LEVEL:{
905
 
      gint tmp = 0;
 
913
      GstDebugLevel tmp = GST_LEVEL_NONE;
906
914
 
907
 
      tmp = strtol (arg, NULL, 0);
 
915
      tmp = (GstDebugLevel) strtol (arg, NULL, 0);
908
916
      if (tmp >= 0 && tmp < GST_LEVEL_COUNT) {
909
917
        gst_debug_set_default_threshold (tmp);
910
918
      }