summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@gmail.com>2003-01-21 22:23:11 +0000
committerWim Taymans <wim.taymans@gmail.com>2003-01-21 22:23:11 +0000
commita635592250ea029ca7a364227af2cd1e56499ff8 (patch)
tree66e7fc54a20c390bed3dd0454e8334335c343205
parent45aff43b3b21262d524690fd8624329468ff563f (diff)
- Add strn tag
Original commit message from CVS: - Add strn tag - fix memleak in debugging code
-rw-r--r--gst-libs/gst/riff/riff.h1
-rw-r--r--gst-libs/gst/riff/riffutil.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/gst-libs/gst/riff/riff.h b/gst-libs/gst/riff/riff.h
index 8d8972512..1788672e8 100644
--- a/gst-libs/gst/riff/riff.h
+++ b/gst-libs/gst/riff/riff.h
@@ -53,6 +53,7 @@ typedef enum {
#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_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_strf MAKE_FOUR_CC('s','t','r','f')
#define GST_RIFF_TAG_vedt MAKE_FOUR_CC('v','e','d','t')
diff --git a/gst-libs/gst/riff/riffutil.c b/gst-libs/gst/riff/riffutil.c
index b363ddb8b..e4c134fba 100644
--- a/gst-libs/gst/riff/riffutil.c
+++ b/gst-libs/gst/riff/riffutil.c
@@ -32,7 +32,7 @@ gulong gst_riff_fourcc_to_id(gchar *fourcc) {
}
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);