TABLE (t, STREAM, DEMUX, N_("Could not demultiplex stream."));
TABLE (t, STREAM, MUX, N_("Could not multiplex stream."));
TABLE (t, STREAM, FORMAT, N_("Stream is of the wrong format."));
+ TABLE (t, STREAM, STOPPED, N_("Streaming stopped."));
return t;
}
*
* Load the named plugin. Refs the plugin.
*
- * Returns: whether the plugin was loaded or not
+ * Returns: A reference to a loaded plugin, or NULL on error.
*/
GstPlugin *
gst_plugin_load_by_name (const gchar * name)
gst_registry_lookup_feature (gst_registry_get_default (), feature->name);
if (real_feature == NULL) {
- g_critical
+ GST_INFO
("Loaded plugin containing feature '%s', but feature disappeared.",
feature->name);
+ } else if (!real_feature->loaded) {
+ GST_INFO ("Tried to load plugin containing feature '%s', but feature was "
+ "not found.", real_feature->name);
+ return NULL;
}
return real_feature;
GST_ELEMENT_FACTORY (gst_plugin_feature_load (GST_PLUGIN_FEATURE
(factory)));
+ if (!factory) {
+ g_print ("element plugin couldn't be loaded\n");
+ return -1;
+ }
+
element = gst_element_factory_create (factory, NULL);
if (!element) {
g_print ("couldn't construct element for some reason\n");