[vlc-commits] demux/playlist: itml: remove macro FREE_ATT

Filip Roséen git at videolan.org
Mon May 22 00:16:09 CEST 2017


vlc | branch: master | Filip Roséen <filip at atch.se> | Sun May 21 20:49:07 2017 +0200| [b6a447e274bf8375c7f23ed50134fd797f62f6fc] | committer: Marvin Scholz

demux/playlist: itml: remove macro FREE_ATT

It is only being used at this specific location.

Signed-off-by: Marvin Scholz <epirat07 at gmail.com>

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

 modules/demux/playlist/itml.c | 2 +-
 modules/demux/playlist/itml.h | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/modules/demux/playlist/itml.c b/modules/demux/playlist/itml.c
index ba837eb343..47c813a9bd 100644
--- a/modules/demux/playlist/itml.c
+++ b/modules/demux/playlist/itml.c
@@ -242,7 +242,7 @@ static bool parse_dict( demux_t *p_demux, input_item_node_t *p_input_node,
             {
                 p_handler->pf_handler.smpl( p_track, psz_key, psz_value );
             }
-            FREE_ATT();
+            FREENULL(psz_value);
             p_handler = NULL;
             break;
         }
diff --git a/modules/demux/playlist/itml.h b/modules/demux/playlist/itml.h
index 489784f0c1..7edbd3e09d 100644
--- a/modules/demux/playlist/itml.h
+++ b/modules/demux/playlist/itml.h
@@ -28,7 +28,6 @@
 /* defines */
 #define FREE_VALUE()    FREENULL( psz_value )
 #define FREE_KEY()      FREENULL( psz_key )
-#define FREE_ATT()      FREE_VALUE()
 
 #define UNKNOWN_CONTENT 0
 #define SIMPLE_CONTENT 1



More information about the vlc-commits mailing list