Gstreamer plugin

tajourim tajouri.maher at gmail.com
Mon Mar 4 03:17:51 PST 2013


/* this function handles the link with other elements */
static gboolean
gst_plugin_template_set_caps (GstPad * pad, GstCaps * caps)
{
  GstPluginTemplate *filter;
  GstPad *otherpad;

  printf("loaded plugin   [%s,%d]\n",__func__,__LINE__);
  filter = GST_PLUGIN_TEMPLATE (gst_pad_get_parent (pad));
  otherpad = (pad == filter->srcpad) ? filter->sinkpad : filter->srcpad;
  gst_object_unref (filter);
  return gst_pad_set_caps (otherpad, caps);
}




--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Gstreamer-plugin-tp4658855p4658864.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list