<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Batang;
        panose-1:2 3 6 0 0 1 1 1 1 1;}
@font-face
        {font-family:"\@Batang";
        panose-1:0 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
pre
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1><pre><font size=2 color=black face="Times New Roman"><span
style='font-size:11.0pt;font-family:"Times New Roman"'>Hi all,<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Times New Roman"><span style='font-size:11.0pt;
font-family:"Times New Roman"'>How to get user specified data in below code. Means, where I can set my user specific data???/ please help meee…………..<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Times New Roman"><span style='font-size:11.0pt;
font-family:"Times New Roman"'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Times New Roman"><span style='font-size:11.0pt;
font-family:"Times New Roman"'>Thank you,<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Times New Roman"><span style='font-size:11.0pt;
font-family:"Times New Roman"'>Raghu<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Times New Roman"><span style='font-size:11.0pt;
font-family:"Times New Roman"'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Times New Roman"><span style='font-size:11.0pt;
font-family:"Times New Roman"'>static void<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Times New Roman"><span style='font-size:11.0pt;
font-family:"Times New Roman"'>cb_handoff (GstElement *fakesrc,<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Times New Roman"><span style='font-size:11.0pt;
font-family:"Times New Roman"'> GstBuffer *buffer,<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Times New Roman"><span style='font-size:11.0pt;
font-family:"Times New Roman"'> GstPad *pad,<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Times New Roman"><span style='font-size:11.0pt;
font-family:"Times New Roman"'> gpointer user_data)<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Times New Roman"><span style='font-size:11.0pt;
font-family:"Times New Roman"'>{<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Times New Roman"><span style='font-size:11.0pt;
font-family:"Times New Roman"'> <o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Times New Roman"><span style='font-size:11.0pt;
font-family:"Times New Roman"'>}<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Times New Roman"><span style='font-size:11.0pt;
font-family:"Times New Roman"'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Times New Roman"><span style='font-size:11.0pt;
font-family:"Times New Roman"'>gint<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Times New Roman"><span style='font-size:11.0pt;
font-family:"Times New Roman"'>main (gint argc,<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Times New Roman"><span style='font-size:11.0pt;
font-family:"Times New Roman"'> gchar *argv[])<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Times New Roman"><span style='font-size:11.0pt;
font-family:"Times New Roman"'>{<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Times New Roman"><span style='font-size:11.0pt;
font-family:"Times New Roman"'> GstElement *pipeline, *fakesrc, *flt, *conv, *videosink;<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Times New Roman"><span style='font-size:11.0pt;
font-family:"Times New Roman"'> GMainLoop *loop;<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Times New Roman"><span style='font-size:11.0pt;
font-family:"Times New Roman"'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Times New Roman"><span style='font-size:11.0pt;
font-family:"Times New Roman"'> /* init GStreamer */<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Times New Roman"><span style='font-size:11.0pt;
font-family:"Times New Roman"'> gst_init (&argc, &argv);<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Times New Roman"><span style='font-size:11.0pt;
font-family:"Times New Roman"'> loop = g_main_loop_new (NULL, FALSE);<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Times New Roman"><span style='font-size:11.0pt;
font-family:"Times New Roman"'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Times New Roman"><span style='font-size:11.0pt;
font-family:"Times New Roman"'> /* setup pipeline */<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Times New Roman"><span style='font-size:11.0pt;
font-family:"Times New Roman"'> pipeline = gst_pipeline_new ("pipeline");<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Times New Roman"><span style='font-size:11.0pt;
font-family:"Times New Roman"'> fakesrc = gst_element_factory_make ("fakesrc", "source");<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Times New Roman"><span style='font-size:11.0pt;
font-family:"Times New Roman"'> videosink = gst_element_factory_make ("xvimagesink", "videosink");<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Times New Roman"><span style='font-size:11.0pt;
font-family:"Times New Roman"'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Times New Roman"><span style='font-size:11.0pt;
font-family:"Times New Roman"'> gst_bin_add_many (GST_BIN (pipeline), fakesrc, videosink, NULL);<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Times New Roman"><span style='font-size:11.0pt;
font-family:"Times New Roman"'> gst_element_link_many (fakesrc, videosink, NULL);<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Times New Roman"><span style='font-size:11.0pt;
font-family:"Times New Roman"'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Times New Roman"><span style='font-size:11.0pt;
font-family:"Times New Roman"'> /* setup fake source */<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Times New Roman"><span style='font-size:11.0pt;
font-family:"Times New Roman"'> g_object_set (G_OBJECT (fakesrc),<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Times New Roman"><span style='font-size:11.0pt;
font-family:"Times New Roman"'> "signal-handoffs", TRUE,<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Times New Roman"><span style='font-size:11.0pt;
font-family:"Times New Roman"'> "sizemax", 384 * 288 * 2,<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Times New Roman"><span style='font-size:11.0pt;
font-family:"Times New Roman"'> "sizetype", 2, NULL);<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Times New Roman"><span style='font-size:11.0pt;
font-family:"Times New Roman"'> g_signal_connect (fakesrc, "handoff", G_CALLBACK (cb_handoff), NULL);<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Times New Roman"><span style='font-size:11.0pt;
font-family:"Times New Roman"'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Times New Roman"><span style='font-size:11.0pt;
font-family:"Times New Roman"'> /* play */<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Times New Roman"><span style='font-size:11.0pt;
font-family:"Times New Roman"'> gst_element_set_state (pipeline, GST_STATE_PLAYING);<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Times New Roman"><span style='font-size:11.0pt;
font-family:"Times New Roman"'> g_main_loop_run (loop);<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Times New Roman"><span style='font-size:11.0pt;
font-family:"Times New Roman"'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Times New Roman"><span style='font-size:11.0pt;
font-family:"Times New Roman"'> /* clean up */<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Times New Roman"><span style='font-size:11.0pt;
font-family:"Times New Roman"'> gst_element_set_state (pipeline, GST_STATE_NULL);<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Times New Roman"><span style='font-size:11.0pt;
font-family:"Times New Roman"'> gst_object_unref (GST_OBJECT (pipeline));<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Times New Roman"><span style='font-size:11.0pt;
font-family:"Times New Roman"'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Times New Roman"><span style='font-size:11.0pt;
font-family:"Times New Roman"'> return 0;<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Times New Roman"><span style='font-size:11.0pt;
font-family:"Times New Roman"'>}<o:p></o:p></span></font></pre></div>
</body>
</html>