[vlc-commits] playlist: item: playlist_Preparse: use vlc_MetadataRequest
Filip Roséen
git at videolan.org
Sun Jul 29 18:58:34 CEST 2018
vlc/vlc-3.0 | branch: master | Filip Roséen <filip at atch.se> | Wed Jul 25 04:06:40 2018 +0200| [3af898a429fc04afce3974b55ce484c0326d4716] | committer: Jean-Baptiste Kempf
playlist: item: playlist_Preparse: use vlc_MetadataRequest
As the functionality provided by the externally accessible
libvlc_MetadataRequest is not satisfactory for the usage in
playlist_Preparse, the call has been replaced by an invocation of
vlc_MetadataRequest (that will not result in indefinite recursion).
fixes: #18236
refs: #20865
Signed-off-by: Thomas Guillem <thomas at gllm.fr>
(cherry picked from commit d7d9f8e4b61f4ab30bc2a3cefc64b09b8236a2a4)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=3af898a429fc04afce3974b55ce484c0326d4716
---
src/playlist/item.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/playlist/item.c b/src/playlist/item.c
index d2e98ff195..fcfa8ffadc 100644
--- a/src/playlist/item.c
+++ b/src/playlist/item.c
@@ -35,6 +35,7 @@
#include <vlc_playlist.h>
#include <vlc_rand.h>
#include "playlist_internal.h"
+#include "libvlc.h"
static void playlist_Preparse( playlist_t *, playlist_item_t * );
@@ -746,7 +747,7 @@ static void playlist_Preparse( playlist_t *p_playlist,
if( sys->b_preparse && !input_item_IsPreparsed( input )
&& (EMPTY_STR(psz_artist) || EMPTY_STR(psz_album)) )
- libvlc_MetadataRequest( p_playlist->obj.libvlc, input, 0, -1, p_item );
+ vlc_MetadataRequest( p_playlist->obj.libvlc, input, 0, -1, p_item );
free( psz_artist );
free( psz_album );
}
More information about the vlc-commits
mailing list