~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-10-08 09:59:20 UTC
  • mfrom: (1.1.7)
  • Revision ID: package-import@ubuntu.com-20121008095920-3k2vlenl0zf6lu7i
Tags: 1.0.1-1
* New upstream stable release:
  + debian/libgstreamer.symbols:
    - Add new symbols.

Show diffs side-by-side

added added

removed removed

Lines of Context:
653
653
static GMutex gst_plugin_loading_mutex;
654
654
 
655
655
#define CHECK_PLUGIN_DESC_FIELD(desc,field,fn)                               \
656
 
  if (G_UNLIKELY ((desc)->field == NULL)) {                                  \
657
 
    GST_ERROR ("GstPluginDesc for '%s' has no %s", fn, G_STRINGIFY (field)); \
 
656
  if (G_UNLIKELY ((desc)->field == NULL || *(desc)->field == '\0')) {        \
 
657
    g_warning ("Plugin description for '%s' has no valid %s field", fn, G_STRINGIFY (field)); \
 
658
    goto return_error;                                                       \
658
659
  }
659
660
 
660
661
/**
776
777
  plugin->orig_desc = desc;
777
778
 
778
779
  if (new_plugin) {
779
 
    /* check plugin description: complain about bad values but accept them, to
780
 
     * maintain backwards compatibility (FIXME: 0.11) */
 
780
    /* check plugin description: complain about bad values and fail */
781
781
    CHECK_PLUGIN_DESC_FIELD (plugin->orig_desc, name, filename);
782
782
    CHECK_PLUGIN_DESC_FIELD (plugin->orig_desc, description, filename);
783
783
    CHECK_PLUGIN_DESC_FIELD (plugin->orig_desc, version, filename);