gstreamer_core/gst/gstpluginfeature.c
branchRCL_3
changeset 29 567bb019e3e3
parent 0 0e761a78d257
child 30 7e817e7e631c
equal deleted inserted replaced
6:9b2c3c7a1a9c 29:567bb019e3e3
    79  *
    79  *
    80  * Loads the plugin containing @feature if it's not already loaded. @feature is
    80  * Loads the plugin containing @feature if it's not already loaded. @feature is
    81  * unaffected; use the return value instead.
    81  * unaffected; use the return value instead.
    82  *
    82  *
    83  * Normally this function is used like this:
    83  * Normally this function is used like this:
    84  *
    84  * |[
    85  * <programlisting>
       
    86  * GstPluginFeature *loaded_feature;
    85  * GstPluginFeature *loaded_feature;
       
    86  * 
    87  * loaded_feature = gst_plugin_feature_load (feature);
    87  * loaded_feature = gst_plugin_feature_load (feature);
    88  * // presumably, we're no longer interested in the potentially-unloaded feature
    88  * // presumably, we're no longer interested in the potentially-unloaded feature
    89  * gst_object_unref (feature);
    89  * gst_object_unref (feature);
    90  * feature = loaded_feature;
    90  * feature = loaded_feature;
    91  * </programlisting>
    91  * ]|
    92  *
    92  *
    93  * Returns: A reference to the loaded feature, or NULL on error.
    93  * Returns: A reference to the loaded feature, or NULL on error.
    94  */
    94  */
    95 #ifdef __SYMBIAN32__
    95 #ifdef __SYMBIAN32__
    96 EXPORT_C
    96 EXPORT_C
   194   if (feature->name) {
   194   if (feature->name) {
   195     g_return_if_fail (strcmp (feature->name, name) == 0);
   195     g_return_if_fail (strcmp (feature->name, name) == 0);
   196   } else {
   196   } else {
   197     feature->name = g_strdup (name);
   197     feature->name = g_strdup (name);
   198   }
   198   }
   199   gst_object_set_name (GST_OBJECT (feature), feature->name);
   199   gst_object_set_name (GST_OBJECT_CAST (feature), feature->name);
   200 }
   200 }
   201 
   201 
   202 /**
   202 /**
   203  * gst_plugin_feature_get_name:
   203  * gst_plugin_feature_get_name:
   204  * @feature: a feature
   204  * @feature: a feature