<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" 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 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-IN link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Hi,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I have pipeline  as mentioned below<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>   /*Local video stream chaine*/<o:p></o:p></p><p class=MsoNormal>    gst_bin_add_many( GST_BIN( video_pipeline_tx ), source, capsfilter, ffmpegcsd, ffcapsfiler, videoflip, videosink, NULL);<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>    /*Link the differents elements*/<o:p></o:p></p><p class=MsoNormal>    ret = gst_element_link_many( source, capsfilter, ffmpegcsd, ffcapsfiler, videoflip, videosink, NULL);<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>    GstPad* data_pad = gst_element_get_static_pad (videoflip, "src");<o:p></o:p></p><p class=MsoNormal>    gst_pad_add_buffer_probe (data_pad, G_CALLBACK (gst_frame_data), this);<o:p></o:p></p><p class=MsoNormal>    gst_object_unref (data_pad);<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>where source is <b>“v4l2src” /dev/video0<o:p></o:p></b></p><p class=MsoNormal><b><o:p> </o:p></b></p><p class=MsoNormal>in normal pipeline PLAY state my application is opening two fd instants of /dev/video0 (checked by ls -l /proc/pid/fd)<o:p></o:p></p><p class=MsoNormal>and after pipeline PAUSE state it close these two fds.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I want these two fds from code.<o:p></o:p></p><p class=MsoNormal>I have successfully get first fd by using <o:p></o:p></p><p class=MsoNormal><b>g_object_get(source, "device-fd", &my_fd, NULL);<o:p></o:p></b></p><p class=MsoNormal><b><o:p> </o:p></b></p><p class=MsoNormal>now i am unable to get 2<sup>nd</sup> fd, Can you please tell me why this 2<sup>nd</sup> FD is open? Also  i need its File descriptor.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Thanks in advance, Please help<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Regards,<o:p></o:p></p><p class=MsoNormal>Keyur Patel<o:p></o:p></p></div>
<br>*************************************************************************************************************************************************************
<p align="justify"><b>eInfochips Business Disclaimer</b>: This e-mail message and all attachments transmitted with it are intended solely for the use of the addressee and may contain legally privileged and confidential information. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution, copying, or other use of this message or its attachments is strictly prohibited. If you have received this message in error, please notify the sender immediately by replying to this message and please delete it from your computer. Any views expressed in this message are those of the individual sender unless otherwise stated. Company has taken enough precautions to prevent the spr
 ead of viruses. However the company accepts no liability for any damage caused by any virus transmitted by this email.</p>
*************************************************************************************************************************************************************

<br></body></html>
<table><tr><td bgcolor=#ffffff><font color=#000000><pre>---------------------------------------------------------------------------------------------
Notice: 
This message has been scanned by Trend Micro Mail Security scanner and is believed to be clean
---------------------------------------------------------------------------------------------</pre></font></td></tr></table>