]> git.sesse.net Git - vlc/commitdiff
activex: remove libvlc_video_set_size() and libvlc_video_set_parent
authorJean-Paul Saman <jean-paul.saman@m2x.nl>
Thu, 14 May 2009 11:06:29 +0000 (13:06 +0200)
committerJean-Paul Saman <jean-paul.saman@m2x.nl>
Thu, 14 May 2009 11:06:29 +0000 (13:06 +0200)
Activex plugin now builds again for windows. Commits: f1582740f8c3b7647e7391ccf7f476ce26846c5f and 03b85ce331b532799827bea23dbe3237f5818733 broke building of the plugin on windows.

projects/activex/plugin.cpp

index 1451f43598ef32e8781e20821766e0a86657101c..0d63f57affb9367a69aead04ee9d627f3e844ed8 100644 (file)
@@ -725,16 +725,6 @@ HRESULT VLCPlugin::onActivateInPlace(LPMSG lpMesg, HWND hwndParent, LPCRECT lprc
         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 && playlist_select(0,NULL) )
         {
             libvlc_media_player_play(_p_mplayer,NULL);
@@ -995,13 +985,6 @@ void VLCPlugin::onPositionChange(LPCRECT lprcPosRect, LPCRECT lprcClipRect)
     SetWindowRgn(_inplacewnd, clipRgn, FALSE);
 
     //RedrawWindow(_videownd, &posRect, NULL, RDW_INVALIDATE|RDW_ERASE|RDW_ALLCHILDREN);
-    if( isRunning() )
-    {
-        libvlc_video_set_size(_p_libvlc,
-            lprcPosRect->right-lprcPosRect->left,
-            lprcPosRect->bottom-lprcPosRect->top,
-            NULL );
-    }
 };
 
 void VLCPlugin::freezeEvents(BOOL freeze)
@@ -1103,5 +1086,3 @@ int  VLCPlugin::playlist_add_extended_untrusted(const char *mrl, int optc, const
 
     return item;
 }
-
-