]> git.sesse.net Git - vlc/blobdiff - modules/gui/macosx/extended.m
* Add an controls to the vout (using the embedded vout framework)
[vlc] / modules / gui / macosx / extended.m
index e560715a1fe088336d23c13ffdf368889a5d0f5c..093353646914c6b241c4fd39e009b81e2a4b3b8c 100644 (file)
@@ -356,24 +356,20 @@ static VLCExtended *_o_sharedInstance = nil;
         FIND_ANYWHERE );
     vout_thread_t *p_vout = vlc_object_find( VLCIntf, VLC_OBJECT_VOUT, FIND_ANYWHERE );
     vout_thread_t *p_real_vout;
-    
+
     val.f_float = [o_sld_opaque floatValue] / 100;
 
+
     if( p_vout != NULL )
     {
-        if( p_vout->i_object_type == VLC_OBJECT_OPENGL )
-        {
-            p_real_vout = (vout_thread_t *) p_vout->p_parent;
-        }
-        else
-        {
-            p_real_vout = p_vout;
-        }
+        p_real_vout = [VLCVoutView getRealVout: p_vout];
         var_Set( p_real_vout, "macosx-opaqueness", val );
-    
+
         while ((o_window = [o_enumerator nextObject]))
         {
-            if( [[o_window className] isEqualToString: @"VLCWindow"] )
+            if( [[o_window className] isEqualToString: @"VLCWindow"] ||
+                [[[VLCMain sharedInstance] getEmbeddedList]
+                                    windowContainsEmbedded: o_window])
             {
                 [o_window setAlphaValue: val.f_float];
             }