diff options
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2009-03-23 15:06:11 +0100 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2009-03-23 15:06:11 +0100 |
commit | da27eb2380088235ee151414e9847ee40b7385e8 (patch) | |
tree | aef7aaa19b40ffff378c62b4fcdbff26768edf4d /gst/mxf | |
parent | 2224a990a85bfa5200849f26c0281cbd66872cab (diff) | |
download | gst-plugins-bad-da27eb2380088235ee151414e9847ee40b7385e8.tar.gz gst-plugins-bad-da27eb2380088235ee151414e9847ee40b7385e8.tar.bz2 gst-plugins-bad-da27eb2380088235ee151414e9847ee40b7385e8.zip |
mxf: Move some static const variables into functions
Diffstat (limited to 'gst/mxf')
-rw-r--r-- | gst/mxf/mxfparse.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gst/mxf/mxfparse.c b/gst/mxf/mxfparse.c index 7d51241d..f0c0d0e5 100644 --- a/gst/mxf/mxfparse.c +++ b/gst/mxf/mxfparse.c @@ -29,11 +29,6 @@ GST_DEBUG_CATEGORY_EXTERN (mxf_debug); #define GST_CAT_DEFAULT mxf_debug -/* SMPTE 377M 3.3: A value of 0 for every field means unknown timestamp */ -static const MXFTimestamp mxf_timestamp_unknown = { 0, 0, 0, 0, 0, 0, 0 }; - -static const MXFUMID umid_zero = { {0,} }; - gboolean mxf_is_mxf_packet (const MXFUL * ul) { @@ -171,7 +166,9 @@ mxf_umid_is_equal (const MXFUMID * a, const MXFUMID * b) gboolean mxf_umid_is_zero (const MXFUMID * umid) { - return (memcmp (umid, &umid_zero, 32) == 0); + static const MXFUMID zero = { {0,} }; + + return (memcmp (umid, &zero, 32) == 0); } gchar * @@ -256,10 +253,13 @@ mxf_timestamp_parse (MXFTimestamp * timestamp, const guint8 * data, guint size) return TRUE; } +/* SMPTE 377M 3.3: A value of 0 for every field means unknown timestamp */ gboolean mxf_timestamp_is_unknown (const MXFTimestamp * a) { - return (memcmp (a, &mxf_timestamp_unknown, sizeof (MXFTimestamp)) == 0); + static const MXFTimestamp unknown = { 0, 0, 0, 0, 0, 0, 0 }; + + return (memcmp (a, &unknown, sizeof (MXFTimestamp)) == 0); } gint |