+ /* will run vlc if not done already */
+ libvlc_instance_t* p_libvlc;
+ HRESULT result = getVLC(&p_libvlc);
+ if( FAILED(result) )
+ return result;
+
+ /* set internal video width and height */
+ libvlc_video_set_size(p_libvlc,
+ lprcPosRect->right-lprcPosRect->left,
+ lprcPosRect->bottom-lprcPosRect->top,
+ NULL );
+
+ /* set internal video parent window */
+ libvlc_video_set_parent(p_libvlc,
+ reinterpret_cast<libvlc_drawable_t>(_inplacewnd), NULL);
+
+ if( _b_autoplay & (libvlc_playlist_items_count(p_libvlc, NULL) > 0) )
+ {
+ libvlc_playlist_play(p_libvlc, 0, 0, NULL, NULL);
+ fireOnPlayEvent();
+ }