[vlc-commits] macosx: remove old and dead code from VideoView.m

David Fuhrmann git at videolan.org
Sun Sep 30 22:02:53 CEST 2012


vlc | branch: master | David Fuhrmann <david.fuhrmann at googlemail.com> | Fri Sep 28 19:08:41 2012 +0200| [b9dc892290963e76a5d3e57e29c8ff838248dad1] | committer: David Fuhrmann

macosx: remove old and dead code from VideoView.m

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

 modules/gui/macosx/VideoView.m |   27 ---------------------------
 1 file changed, 27 deletions(-)

diff --git a/modules/gui/macosx/VideoView.m b/modules/gui/macosx/VideoView.m
index b84debd..6551a6e 100644
--- a/modules/gui/macosx/VideoView.m
+++ b/modules/gui/macosx/VideoView.m
@@ -40,23 +40,6 @@
 #import <vlc_common.h>
 #import <vlc_keys.h>
 
-/*****************************************************************************
- * DeviceCallback: Callback triggered when the video-device variable is changed
- *****************************************************************************/
-int DeviceCallback(vlc_object_t *p_this, const char *psz_variable,
-                     vlc_value_t old_val, vlc_value_t new_val, void *param)
-{
-    vlc_value_t val;
-    vout_thread_t *p_vout = (vout_thread_t *)p_this;
-
-    msg_Dbg(p_vout, "set %"PRId64, new_val.i_int);
-    var_Create(p_vout->p_libvlc, "video-device", VLC_VAR_INTEGER);
-    var_Set(p_vout->p_libvlc, "video-device", new_val);
-
-    val.b_bool = true;
-    var_Set(p_vout, "intf-change", val);
-    return VLC_SUCCESS;
-}
 
 /*****************************************************************************
  * VLCVoutView implementation
@@ -109,16 +92,6 @@ int DeviceCallback(vlc_object_t *p_this, const char *psz_variable,
 #pragma mark -
 #pragma mark vout actions
 
-- (void)closeVout
-{
-    vout_thread_t * p_vout = getVout();
-    if (p_vout)
-    {
-        var_DelCallback(p_vout, "video-device", DeviceCallback, NULL);
-        vlc_object_release(p_vout);
-    }
-}
-
 - (void)keyDown:(NSEvent *)o_event
 {
     unichar key = 0;



More information about the vlc-commits mailing list