[vlc-devel] [PATCH 2/2] lib: media_player: remove the extra cookie jar
Thomas Guillem
thomas at gllm.fr
Fri Oct 30 14:45:49 CET 2020
It's now handled by vlc_player_t.
---
lib/media_player.c | 17 -----------------
1 file changed, 17 deletions(-)
diff --git a/lib/media_player.c b/lib/media_player.c
index d74f3be3dee..b6391698351 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);
--
2.28.0
More information about the vlc-devel
mailing list