how to get user data in cbk

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


Hi all,
How to get user specified data in below code. Means, where I can set my user
specific data???/ please help meee......
 
Thank you,
Raghu
 
static void
cb_handoff (GstElement *fakesrc,
                   GstBuffer  *buffer,
                   GstPad     *pad,
                   gpointer    user_data)
{
  
}
 
gint
main (gint   argc,
      gchar *argv[])
{
  GstElement *pipeline, *fakesrc, *flt, *conv, *videosink;
  GMainLoop *loop;
 
  /* init GStreamer */
  gst_init (&argc, &argv);
  loop = g_main_loop_new (NULL, FALSE);
 
  /* setup pipeline */
  pipeline = gst_pipeline_new ("pipeline");
  fakesrc = gst_element_factory_make ("fakesrc", "source");
  videosink = gst_element_factory_make ("xvimagesink", "videosink");
 
  gst_bin_add_many (GST_BIN (pipeline), fakesrc, videosink, NULL);
  gst_element_link_many (fakesrc, videosink, NULL);
 
  /* setup fake source */
  g_object_set (G_OBJECT (fakesrc),
                               "signal-handoffs", TRUE,
                               "sizemax", 384 * 288 * 2,
                               "sizetype", 2, NULL);
  g_signal_connect (fakesrc, "handoff", G_CALLBACK (cb_handoff), NULL);
 
  /* play */
  gst_element_set_state (pipeline, GST_STATE_PLAYING);
  g_main_loop_run (loop);
 
  /* clean up */
  gst_element_set_state (pipeline, GST_STATE_NULL);
  gst_object_unref (GST_OBJECT (pipeline));
 
  return 0;
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-embedded/attachments/20081105/4526cdf0/attachment.htm>


[Index of Archives]     [Linux Embedded]     [Linux ARM Kernel]     [Linux for ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux Media]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux