- Add strn tag

Original commit message from CVS:
- Add strn tag
- fix memleak in debugging code
This commit is contained in:
Wim Taymans 2003-01-21 22:23:11 +00:00
parent d139f14856
commit 77d1f6aee3
2 changed files with 2 additions and 1 deletions

View file

@ -53,6 +53,7 @@ typedef enum {
#define GST_RIFF_TAG_LIST MAKE_FOUR_CC('L','I','S','T') #define GST_RIFF_TAG_LIST MAKE_FOUR_CC('L','I','S','T')
#define GST_RIFF_TAG_avih MAKE_FOUR_CC('a','v','i','h') #define GST_RIFF_TAG_avih MAKE_FOUR_CC('a','v','i','h')
#define GST_RIFF_TAG_strd MAKE_FOUR_CC('s','t','r','d') #define GST_RIFF_TAG_strd MAKE_FOUR_CC('s','t','r','d')
#define GST_RIFF_TAG_strn MAKE_FOUR_CC('s','t','r','n')
#define GST_RIFF_TAG_strh MAKE_FOUR_CC('s','t','r','h') #define GST_RIFF_TAG_strh MAKE_FOUR_CC('s','t','r','h')
#define GST_RIFF_TAG_strf MAKE_FOUR_CC('s','t','r','f') #define GST_RIFF_TAG_strf MAKE_FOUR_CC('s','t','r','f')
#define GST_RIFF_TAG_vedt MAKE_FOUR_CC('v','e','d','t') #define GST_RIFF_TAG_vedt MAKE_FOUR_CC('v','e','d','t')

View file

@ -32,7 +32,7 @@ gulong gst_riff_fourcc_to_id(gchar *fourcc) {
} }
gchar *gst_riff_id_to_fourcc(gulong id) { gchar *gst_riff_id_to_fourcc(gulong id) {
gchar *fourcc = (gchar *)g_malloc(5); static gchar fourcc[5];
g_return_val_if_fail(fourcc != NULL, NULL); g_return_val_if_fail(fourcc != NULL, NULL);