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

« back to all changes in this revision

Viewing changes to gst/gstplugin.c

  • Committer: Package Import Robot
  • Author(s): Sebastian Dröge
  • Date: 2012-12-19 10:25:15 UTC
  • mfrom: (1.1.10)
  • Revision ID: package-import@ubuntu.com-20121219102515-3ja8ijopdr4hupsi
Tags: 1.0.4-1
New upstream bugfix release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
481
481
  if (!gst_plugin_check_version (desc->major_version, desc->minor_version)) {
482
482
    if (GST_CAT_DEFAULT)
483
483
      GST_WARNING ("plugin \"%s\" has incompatible version, not loading",
484
 
          plugin->filename);
 
484
          GST_STR_NULL (plugin->filename));
485
485
    return NULL;
486
486
  }
487
487
 
489
489
      !desc->package || !desc->origin) {
490
490
    if (GST_CAT_DEFAULT)
491
491
      GST_WARNING ("plugin \"%s\" has incorrect GstPluginDesc, not loading",
492
 
          plugin->filename);
 
492
          GST_STR_NULL (plugin->filename));
493
493
    return NULL;
494
494
  }
495
495
 
496
496
  if (!gst_plugin_check_license (desc->license)) {
497
497
    if (GST_CAT_DEFAULT)
498
498
      GST_WARNING ("plugin \"%s\" has invalid license \"%s\", not loading",
499
 
          plugin->filename, desc->license);
 
499
          GST_STR_NULL (plugin->filename), desc->license);
500
500
    return NULL;
501
501
  }
502
502
 
514
514
  if (user_data) {
515
515
    if (!(((GstPluginInitFullFunc) (desc->plugin_init)) (plugin, user_data))) {
516
516
      if (GST_CAT_DEFAULT)
517
 
        GST_WARNING ("plugin \"%s\" failed to initialise", plugin->filename);
 
517
        GST_WARNING ("plugin \"%s\" failed to initialise",
 
518
            GST_STR_NULL (plugin->filename));
518
519
      return NULL;
519
520
    }
520
521
  } else {
521
522
    if (!((desc->plugin_init) (plugin))) {
522
523
      if (GST_CAT_DEFAULT)
523
 
        GST_WARNING ("plugin \"%s\" failed to initialise", plugin->filename);
 
524
        GST_WARNING ("plugin \"%s\" failed to initialise",
 
525
            GST_STR_NULL (plugin->filename));
524
526
      return NULL;
525
527
    }
526
528
  }