<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><br><br><br><br><br><div style="position:relative;zoom:1"></div><div id="divNeteaseMailCard"></div><br><div id="isForwardContent">-------- 转发邮件信息 --------<br>发件人:"yeyamin" <yeyamin0000@126.com><br>发送日期:2016-11-01 10:36:18<br>收件人:4leyx4ndre@gmail.com<br>主题:Fw:a bug<br><div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div><br><br><br><br><br></div><div style="position: relative; zoom: 1;"></div><div></div><div><br></div><div id="isForwardContent">-------- Forwarding messages --------<br>From: "yeyamin" <<a href="mailto:yeyamin0000@126.com">yeyamin0000@126.com</a>><br>Date: 2016-10-26 09:39:18<br>To:  <a href="mailto:nick@videolan.org">nick@videolan.org</a><br>Subject: a bug<br><div style="color: rgb(0, 0, 0); line-height: 1.7; font-family: Arial; font-size: 14px;"><div>dear..</div><div>    vlc is a great project.when I <span style="line-height: 26px; font-family: arial, 宋体; font-size: 13px;">integrated it with libvlc,i find a bug.so i think i should tell you and in future we could fix it.make it much better.</span></div><div><span style="line-height: 26px; font-family: arial, 宋体; font-size: 13px;">    the version is 2.2.4 when i used .first of all,i call </span><font face="arial, 宋体"><span style="line-height: 26px; font-size: 13px;">libvlc_new and then return a object.</span></font><span style="line-height: 26px; font-family: arial, 宋体; font-size: 13px;">i want to open the file next and the file path is not valid,such as "</span><font face="arial, 宋体"><span style="line-height: 26px; font-size: 13px;">d:\output232.mp4" .and then call libvlc_vlm_add_broadcast and libvlc_vlm_play_media.we are getting crash.in </span></font><span style="line-height: 26px; font-family: arial, 宋体; font-size: 13px;">libvlc_vlm_play_media.</span></div><div><font face="arial, 宋体"><span style="line-height: 26px; font-size: 13px;">for example:</span></font></div><div><font face="arial, 宋体"><span style="line-height: 26px; font-size: 13px;"><div><span style="white-space: pre;" class="Apple-tab-span"> </span>libvlc_instance_t *vlc;</div><div><span style="white-space: pre;" class="Apple-tab-span">    </span>const char *url;</div><div><br></div><div><span style="white-space: pre;" class="Apple-tab-span">  </span>const char *sout = "#transcode{vcodec=h264,fps=25,venc=x264{preset=ultrafast,"\</div><div><span style="white-space: pre;" class="Apple-tab-span">          </span>"profile=baseline,tune=zerolatency},vb=512,"                              \</div><div><span style="white-space: pre;" class="Apple-tab-span">           </span>"acodec=mpga,ab=64,channels=2}"                                           \</div><div><span style="white-space: pre;" class="Apple-tab-span">             </span>":duplicate{dst=display,dst=standard{access=udp,mux=ts,dst=234.2.5.6:6666}}";</div><div><span style="white-space: pre;" class="Apple-tab-span">    </span>const char *media_name = "test";</div><div><br></div><div><span style="white-space: pre;" class="Apple-tab-span">        </span>url = "d:\output232.mp4";</div><div><br></div><div><span style="white-space: pre;" class="Apple-tab-span">       </span>vlc = libvlc_new(0, NULL);</div><div><span style="white-space: pre;" class="Apple-tab-span"> </span>if (libvlc_vlm_add_broadcast(vlc, media_name, url, sout, 0, NULL, true, false) < 0){</div><div><span style="white-space: pre;" class="Apple-tab-span">            </span>printf("libvlc_vlm_add_broadcast :%s\n", libvlc_errmsg());</div><div><span style="white-space: pre;" class="Apple-tab-span">               </span>return 0;</div><div><span style="white-space: pre;" class="Apple-tab-span">  </span>}</div><div><span style="white-space: pre;" class="Apple-tab-span">  </span>libvlc_vlm_play_media(vlc, media_name);</div><div><br></div><div><span style="white-space: pre;" class="Apple-tab-span">   </span>//play 30s  </div><div><span style="white-space: pre;" class="Apple-tab-span">  </span>Sleep(300000);</div><div><br></div><div><span style="white-space: pre;" class="Apple-tab-span">    </span>libvlc_vlm_stop_media(vlc, media_name);</div><div><span style="white-space: pre;" class="Apple-tab-span">    </span>libvlc_vlm_release(vlc);</div><div><br></div><div>best wish</div></span></font></div></div><br><br><span title="neteasefooter"><p> </p></span></div></div><br><br><span title="neteasefooter"><p> </p></span></div></div><br><br><span title="neteasefooter"><p> </p></span>