[vlc-commits] lib: media_player: remove extra cookie jar

Thomas Guillem git at videolan.org
Mon Nov 2 11:30:59 CET 2020


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Oct 30 14:43:15 2020 +0100| [157a5db7d3f524db414fda43d4b56086cfeec335] | committer: Thomas Guillem

lib: media_player: remove extra cookie jar

It's now handled by vlc_player_t.

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

 lib/media_player.c | 17 -----------------
 1 file changed, 17 deletions(-)

diff --git a/lib/media_player.c b/lib/media_player.c
index d74f3be3de..b639169835 100644
--- a/lib/media_player.c
+++ b/lib/media_player.c
@@ -36,7 +36,6 @@
 #include <vlc_vout.h>
 #include <vlc_aout.h>
 #include <vlc_actions.h>
-#include <vlc_http.h>
 
 #include "libvlc_internal.h"
 #include "media_internal.h" // libvlc_media_set_state()
@@ -709,15 +708,6 @@ libvlc_media_player_new( libvlc_instance_t *instance )
     var_Create (mp, "equalizer-vlcfreqs", VLC_VAR_BOOL);
     var_Create (mp, "equalizer-bands", VLC_VAR_STRING);
 
-    /* Initialize the shared HTTP cookie jar */
-    vlc_value_t cookies;
-    cookies.p_address = vlc_http_cookies_new();
-    if ( likely(cookies.p_address) )
-    {
-        var_Create(mp, "http-cookies", VLC_VAR_ADDRESS);
-        var_SetChecked(mp, "http-cookies", VLC_VAR_ADDRESS, cookies);
-    }
-
     mp->p_md = NULL;
     mp->p_libvlc_instance = instance;
     /* use a reentrant lock to allow calling libvlc functions from callbacks */
@@ -822,13 +812,6 @@ static void libvlc_media_player_destroy( libvlc_media_player_t *p_mi )
     libvlc_event_manager_destroy(&p_mi->event_manager);
     libvlc_media_release( p_mi->p_md );
 
-    vlc_http_cookie_jar_t *cookies = var_GetAddress( p_mi, "http-cookies" );
-    if ( cookies )
-    {
-        var_Destroy( p_mi, "http-cookies" );
-        vlc_http_cookies_destroy( cookies );
-    }
-
     libvlc_instance_t *instance = p_mi->p_libvlc_instance;
     vlc_object_delete(p_mi);
     libvlc_release(instance);



More information about the vlc-commits mailing list