[vlc-devel] libvlc_video_resize

ChengYQ crashboat at hotmail.com
Thu Aug 23 22:40:10 CEST 2007

Basically, I want to realize the video zoom function in my application using vlclib.
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.
One more query is that the libvlc.h has many type: libvlc_input_t as input parameters, i.e. libvlc_video_resize function. But when I check the Doxygen websites, the inpurt parameter is libvlc_media_instance. why this two function is different? are both difinition for libvlc?
here is my testing code, please give me some help, thanks a lot!
   libvlc_exception_t excp;   libvlc_instance_t *inst;   int item;   char *myarg0 = "-I";  char *myarg1 = "dummy";   char *myarg2 = "--plugin-path=D:test\\plugins";   char *myargs[4] = {myarg0, myarg1, myarg2, NULL};   char *filename = "d:\\MOV02225.MPG";
   libvlc_exception_init (&excp);   inst = libvlc_new (3, myargs, &excp);   quit_on_exception (&excp);   item = libvlc_playlist_add (inst, filename, NULL, &excp);    quit_on_exception (&excp);     libvlc_playlist_play (inst, item, 0, NULL, &excp);    Sleep(2000);
   int w = libvlc_video_get_width(lit,&excp);//w is always 0.
   Sleep (3000);   libvlc_destroy (inst);   return 0;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20070823/56bf9352/attachment.html>
-------------- next part --------------
vlc-devel mailing list
To unsubscribe or modify your subscription options:

More information about the vlc-devel mailing list