<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
I am running this in Linux.<div><br></div><div>code for play and stop media is as:</div><div><br></div><div>Here I am creating <font class="Apple-style-span" color="#FF0000">inst</font> only once in this function.</div><div>createLibVLCInst()</div><div>{</div><div><div> const char * const vlc_args[] = {</div><div>               "-I", "dummy", /* Don't use any interface */</div><div>               "--ignore-config" /* Don't use VLC's config */</div><div>                };</div><div>//<span class="Apple-tab-span" style="white-space:pre"> </span>libvlc_exception_init (&ex);</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">    </span><font class="Apple-style-span" color="#FF0000">inst</font> = libvlc_new (sizeof(vlc_args) / sizeof(vlc_args[0]), vlc_args);</div></div><div>}</div><div><br></div><div><div>int PlayVideo(fileToPlay,char *ipAddr,int videoRtpPort,int videoRtcpPort,int audioRtpPort,int audioRtcpPort,void *userData) </div><div>{</div><div>    </div><div><span class="Apple-tab-span" style="white-space:pre">        </span>char vlcOption[500];</div><div>    memset(vlcOption,0,500);</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">      </span>DP_LOG(TRACE_DEBUG,DP_INFO,"[videoStream::PlayVideo]->Entering");</div><div>    //const char * file ="h263_alaw.mov";  </div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">      </span>libvlc_instance_t *<font class="Apple-style-span" color="#FF0000"> inst </font>= sSipVideoMgr.getInstance();</div><div><span class="Apple-tab-span" style="white-space:pre"> </span></div><div> </div><div><span class="Apple-tab-span" style="white-space:pre">        </span>m = libvlc_media_new_path (inst, fileToPlay.c_str());</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">       </span>mp = libvlc_media_player_new_from_media (m);</div><div><br></div><div>    // Create an event manager for the player for handling e.g. time change events</div><div>    m_pEvtManager=libvlc_media_player_event_manager(mp);</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>SetEventHandler(handleVideoEventsCB,userData);</div><div><span class="Apple-tab-span" style="white-space:pre">       </span>sprintf(vlcOption,"sout=#transcode{acodec=alaw,channels=1,samplerate=8000}:rtp{dst=%s,port-audio=%d,port-video=%d}",ipAddr,audioRtpPort,videoRtpPort);</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">    </span>libvlc_media_add_option(m,vlcOption);</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">       </span>libvlc_media_release (m);</div><div><span class="Apple-tab-span" style="white-space:pre">    </span></div><div><span class="Apple-tab-span" style="white-space:pre">     </span></div><div><span class="Apple-tab-span" style="white-space:pre">     </span>libvlc_media_player_play (mp);</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">      </span>DP_LOG(TRACE_DEBUG,DP_INFO,"[videoStream::PlayVideo]->Exiting");</div><div><br></div><div>  <span class="Apple-tab-span" style="white-space:pre">   </span>return 0; // only to prevent compiler warning</div><div>}</div><div><br></div><div>int videoStream::stopVideo()</div><div>{</div><div><span class="Apple-tab-span" style="white-space:pre">    </span>/* Stop playing */</div><div><span class="Apple-tab-span" style="white-space:pre">   </span>libvlc_media_player_stop (mp);</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">      </span>/* Free the media_player */</div><div><span class="Apple-tab-span" style="white-space:pre">  </span>libvlc_media_player_release (mp);</div><div>}</div><div><br></div><div>Running this flow for almost 30 "H263 video" calls per second; and It freezes after every 3-4 hours of testing.</div><div><br></div><div>Let me know if you need any more info for reproducing it.</div><div><br></div><div>Regards,</div><div>Parveen Jain</div><br>> To: vlc-devel@videolan.org<br>> Date: Wed, 14 Jul 2010 12:54:42 +0200<br>> From: remi@remlab.net<br>> Subject: Re: [vlc-devel] VLC deadlock at libvlc_media_player_stop(Even in latest release 1.1.0)<br>> <br>> <br>> On Wed, 14 Jul 2010 16:20:02 +0530, Parveen Jain <parveenjain@live.com><br>> wrote:<br>> > <br>> > Hi All,  I had created an video application(using libVLC) which streams<br>> > video files.But somehow after 3-4 hours of testing the application<br>> > freezes.The application always gets deadlocked at<br>> "libvlc_media_player_stop<br>> > (mp)".<br>> > I read in several of the threads that issue is resolved in latest<br>> releases<br>> > ,and I installed even the latest VLC_1.1.0(installed today only), but the<br>> > issue is still there.Are we able to fix it on any other way ?Or someone<br>> can<br>> > provide any way out for this ?<br>> <br>> Can you provide some simple C code test case?<br>> Can you provide a threads stack trace of the deadlock?<br>> Is it Windows-specific?<br>> <br>> -- <br>> Rémi Denis-Courmont<br>> http://www.remlab.net<br>> http://fi.linkedin.com/in/remidenis<br>> <br>> _______________________________________________<br>> vlc-devel mailing list<br>> To unsubscribe or modify your subscription options:<br>> http://mailman.videolan.org/listinfo/vlc-devel<br></div>                                         <br /><hr />Make the world eco-friendly through MSN Green <a href='http://green.in.msn.com/' target='_new'>Drag n' drop</a></body>
</html>