~ubuntu-branches/ubuntu/trusty/gstreamer1.0/trusty

« back to all changes in this revision

Viewing changes to gst/gstregistry.c

  • Committer: Package Import Robot
  • Author(s): Sebastian Dröge
  • Date: 2012-05-21 11:14:06 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20120521111406-1wfas0o9fdaxjyo8
Tags: 0.11.91-1
* New upstream release, "I will give you five magic beans!":
  + debian/libgstreamer.symbols:
    - Update symbols file.
* debian/libgstreamer-dev.install:
  + Don't ship useless .la file for the core plugins.
  + Don't ship .a and .la files for the library.
* debian/control.in:
  + Update debhelper dependency version and Standards-Version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
438
438
          GST_STR_NULL (plugin->filename));
439
439
      /* If the new plugin is blacklisted and the existing one isn't cached, do not
440
440
       * accept if it's from a different location than the existing one */
441
 
      if ((plugin->flags & GST_PLUGIN_FLAG_BLACKLISTED) &&
 
441
      if (GST_OBJECT_FLAG_IS_SET (plugin, GST_PLUGIN_FLAG_BLACKLISTED) &&
442
442
          strcmp (plugin->filename, existing_plugin->filename)) {
443
443
        GST_WARNING_OBJECT (registry,
444
444
            "Not replacing plugin because new one (%s) is blacklisted but for a different location than existing one (%s)",
816
816
  return list;
817
817
}
818
818
 
 
819
static gboolean
 
820
gst_registry_plugin_name_filter (GstPlugin * plugin, const gchar * name)
 
821
{
 
822
  return (plugin->desc.name && !strcmp (plugin->desc.name, name));
 
823
}
 
824
 
819
825
/**
820
826
 * gst_registry_find_plugin:
821
827
 * @registry: the registry to search
839
845
  g_return_val_if_fail (name != NULL, NULL);
840
846
 
841
847
  walk = gst_registry_plugin_filter (registry,
842
 
      (GstPluginFilter) gst_plugin_name_filter, TRUE, (gpointer) name);
 
848
      (GstPluginFilter) gst_registry_plugin_name_filter, TRUE, (gpointer) name);
843
849
  if (walk) {
844
850
    result = GST_PLUGIN_CAST (walk->data);
845
851
 
1272
1278
          !(deps_changed = _priv_plugin_deps_files_changed (plugin)) &&
1273
1279
          !strcmp (plugin->filename, filename)) {
1274
1280
        GST_LOG_OBJECT (context->registry, "file %s cached", filename);
1275
 
        plugin->flags &= ~GST_PLUGIN_FLAG_CACHED;
 
1281
        GST_OBJECT_FLAG_UNSET (plugin, GST_PLUGIN_FLAG_CACHED);
1276
1282
        GST_LOG_OBJECT (context->registry,
1277
1283
            "marking plugin %p as registered as %s", plugin, filename);
1278
1284
        plugin->registered = TRUE;
1481
1487
  while (g) {
1482
1488
    g_next = g->next;
1483
1489
    plugin = g->data;
1484
 
    if (plugin->flags & GST_PLUGIN_FLAG_CACHED) {
 
1490
    if (GST_OBJECT_FLAG_IS_SET (plugin, GST_PLUGIN_FLAG_CACHED)) {
1485
1491
      GST_DEBUG_OBJECT (registry, "removing cached plugin \"%s\"",
1486
1492
          GST_STR_NULL (plugin->filename));
1487
1493
      registry->priv->plugins = g_list_delete_link (registry->priv->plugins, g);
1593
1599
          g_win32_get_package_installation_directory_of_module
1594
1600
          (_priv_gst_dll_handle);
1595
1601
 
1596
 
      dir = g_build_filename (base_dir, "lib", "gstreamer-0.10", NULL);
 
1602
      dir =
 
1603
          g_build_filename (base_dir, "lib", "gstreamer-" GST_API_VERSION,
 
1604
          NULL);
1597
1605
      GST_DEBUG ("scanning DLL dir %s", dir);
1598
1606
 
1599
1607
      changed |= gst_registry_scan_path_internal (&context, dir);