[vlc-devel] commit: activex: remove libvlc_video_set_size() and libvlc_video_set_parent (Jean-Paul Saman )

git version control git at videolan.org
Thu May 14 13:09:11 CEST 2009


vlc | branch: master | Jean-Paul Saman <jean-paul.saman at m2x.nl> | Thu May 14 13:06:29 2009 +0200| [112853d994f0b6113d18b3e38bb7d2890fe3fba6] | committer: Jean-Paul Saman 

activex: remove libvlc_video_set_size() and libvlc_video_set_parent

Activex plugin now builds again for windows. Commits: f1582740f8c3b7647e7391ccf7f476ce26846c5f and 03b85ce331b532799827bea23dbe3237f5818733 broke building of the plugin on windows.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=112853d994f0b6113d18b3e38bb7d2890fe3fba6
---

 projects/activex/plugin.cpp |   19 -------------------
 1 files changed, 0 insertions(+), 19 deletions(-)

diff --git a/projects/activex/plugin.cpp b/projects/activex/plugin.cpp
index 1451f43..0d63f57 100644
--- a/projects/activex/plugin.cpp
+++ b/projects/activex/plugin.cpp
@@ -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;
 }
-
-




More information about the vlc-devel mailing list