Commit 9022c3a6 authored by Filip Roséen's avatar Filip Roséen Committed by Jean-Baptiste Kempf

demux/playlist/itml: new_track: minor clean-up

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent d8a1ff99
......@@ -344,9 +344,8 @@ static bool parse_track_dict( demux_t *p_demux, input_item_node_t *p_input_node,
static track_elem_t *new_track()
{
track_elem_t *p_track;
p_track = malloc( sizeof( track_elem_t ) );
if( p_track )
track_elem_t *p_track = malloc( sizeof *p_track );
if( likely( p_track ) )
{
p_track->name = NULL;
p_track->artist = NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment