<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
Hi,<div><br class="webkit-block-placeholder"></div><div>LibVLC is under some big changes. Basically libvlc_media_instance_t has replaced libvlc_input_t.</div><div><br class="webkit-block-placeholder"></div><div>If you are using 0.9.0 I suggest you to look at:</div><div><br class="webkit-block-placeholder"></div><div><a href="http://wiki.videolan.org/LibVLC_Tutorial">http://wiki.videolan.org/LibVLC_Tutorial</a></div><div><br class="webkit-block-placeholder"></div><div>Which shows how to use a media_instance (the playlist functions may become deprecated). You can then, pass the media_instance_t to libvlc_video_resize() or whatever.</div><div><br class="webkit-block-placeholder"></div><div>In the sample code you showed I don't see any definition of 'lit', which you be the result of libvlc_playlist_get_media_instance().</div><div><br class="webkit-block-placeholder"></div><div>Good Luck,</div><div><br class="webkit-block-placeholder"></div><div>Pierre.</div><div><br><div><div>On 23 août 07, at 22:40, ChengYQ wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi,<br>  <br> Basically, I want to realize the video zoom function in my application using vlclib.<br>  <br> However the libvlc_video_resize function does not work, and exit when I use this function(libary loading is OK), and when I try to use libvlc_video_get_width, the result is always 0.<br>  <br> One more query is that the libvlc.h has many type: <u>libvlc_input_t</u> as input parameters, i.e. libvlc_video_resize function. But when I check the Doxygen websites, the inpurt parameter is <u>libvlc_media_instance. </u>why this two function is different? are both difinition for libvlc?<br>  <br> here is my testing code, please give me some help, thanks a lot!<br>  <br>    libvlc_exception_t excp;<br>   libvlc_instance_t *inst;<br>   int item;<br>   char *myarg0 = "-I";  char *myarg1 = "dummy";<br>   char *myarg2 = "--plugin-path=D:test\\plugins";<br>   char *myargs[4] = {myarg0, myarg1, myarg2, NULL};<br>   char *filename = "d:\\MOV02225.MPG";<br>    libvlc_exception_init (&excp);<br>   inst = libvlc_new (3, myargs, &excp);<br>   quit_on_exception (&excp);<br>   item = libvlc_playlist_add (inst, filename, NULL, &excp); <br>   quit_on_exception (&excp);<br>  <br>   libvlc_playlist_play (inst, item, 0, NULL, &excp); <br>   Sleep(2000);<br>    int w = libvlc_video_get_width(lit,&excp);//w is always 0.<br>    libvlc_video_resize(lit,100,100,&excp);<br>    Sleep (3000);<br>   libvlc_destroy (inst);<br>   return 0;<br>  <br>  <br>  <br>  <br><br><hr>中国十大热门旅游景点 <a href="http://search.msn.com/results.aspx?q=%E4%B8%AD%E5%9B%BD%E5%8D%81%E5%A4%A7%E9%A3%8E%E6%99%AF&mkt=zh-CN&form=QBRE" target="_new">了解更多信息!</a><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">_______________________________________________</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">vlc-devel mailing list</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">To unsubscribe or modify your subscription options:</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><a href="http://mailman.videolan.org/listinfo/vlc-devel">http://mailman.videolan.org/listinfo/vlc-devel</a></div> </blockquote></div><br></div></body></html>