GstBuffer* gst_buffer_copy (GstBuffer *buffer);
/* add, retrieve, and remove metadata from the buffer */
-/* DEPRACATED!!!
+/* DEPRECATED!!!
void gst_buffer_add_meta (GstBuffer *buffer, GstMeta *meta);
void gst_buffer_remove_meta (GstBuffer *buffer, GstMeta *meta);
GstMeta* gst_buffer_get_first_meta (GstBuffer *buffer);
GstElement *dest, const gchar *destpadname)
{
GstPad *srcpad,*destpad;
- GstObject *srcparent,*destparent;
g_return_if_fail (src != NULL);
g_return_if_fail (GST_IS_ELEMENT(src));
return;
}
- /* find the parent elements of each element */
- srcparent = gst_object_get_parent (GST_OBJECT (src));
- destparent = gst_object_get_parent (GST_OBJECT (dest));
-
- /* have to make sure that they have the same parents... */
- /*
- if (srcparent != destparent) {
- GST_ERROR_OBJECT(srcparent,destparent,"%s and %s have different parents",
- GST_ELEMENT_NAME (src),GST_ELEMENT_NAME (dest));
- return;
- }
- */
-
/* we're satisified they can be connected, let's do it */
gst_pad_connect(srcpad,destpad);
}
static GstElementStateReturn gst_pipeline_change_state (GstElement *element);
-static void gst_pipeline_prepare (GstPipeline *pipeline);
-
-
static GstBinClass *parent_class = NULL;
//static guint gst_pipeline_signals[LAST_SIGNAL] = { 0 };
GST_ELEMENT_SCHED(pipeline) = gst_schedule_new(GST_ELEMENT(pipeline));
GST_DEBUG(GST_CAT_PIPELINE, "pipeline's scheduler is %p\n",GST_ELEMENT_SCHED(pipeline));
-// gst_element_set_manager(GST_ELEMENT(pipeline),GST_ELEMENT(pipeline));
}
return gst_elementfactory_make ("pipeline", name);
}
-static void
-gst_pipeline_prepare (GstPipeline *pipeline)
-{
- GST_DEBUG (GST_CAT_PIPELINE,"preparing pipeline \"%s\" for playing (DEPRACATED!!)\n",
- GST_ELEMENT_NAME(GST_ELEMENT(pipeline)));
-}
-
static GstElementStateReturn
gst_pipeline_change_state (GstElement *element)
{
- GstPipeline *pipeline;
-
- g_return_val_if_fail (GST_IS_PIPELINE (element), FALSE);
-
- pipeline = GST_PIPELINE (element);
-
- switch (GST_STATE_TRANSITION (pipeline)) {
- case GST_STATE_NULL_TO_READY:
- // we need to set up internal state
- gst_pipeline_prepare (pipeline);
- break;
- default:
- break;
- }
-
if (GST_ELEMENT_CLASS (parent_class)->change_state)
return GST_ELEMENT_CLASS (parent_class)->change_state (element);
return GST_STATE_SUCCESS;
}
-/**
- * gst_pipeline_iterate:
- * @pipeline: #GstPipeline to iterate
- *
- * Cause the pipeline's contents to be run through one full 'iteration'.
- */
-void
-gst_pipeline_iterate (GstPipeline *pipeline)
-{
- g_return_if_fail (pipeline != NULL);
- g_return_if_fail (GST_IS_PIPELINE(pipeline));
-}
GstPlugin *plugin;
struct stat file_status;
+ GST_INFO (GST_CAT_PLUGIN_LOADING,"plugin \"%s\" loading", name);
+
if (g_module_supported() == FALSE) {
g_warning("gstplugin: wow, you built this on a platform without dynamic loading???\n");
return FALSE;
}
if (stat(name,&file_status)) {
-// g_print("problem opening file %s\n",name);
+ g_print("problem opening file %s\n",name);
return FALSE;
}
// FIXME this should be some standard gst mechanism!!!
g_printerr ("error loading plugin %s, reason: %s\n", name, g_module_error());
}
+ else {
+ GST_INFO (GST_CAT_PLUGIN_LOADING, "error loading plugin %s, reason: %s\n", name, g_module_error());
+ }
return FALSE;
}