flvdemux: Don't use static variables to hold index associations
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Fri, 6 Apr 2012 07:13:31 +0000 (09:13 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Fri, 6 Apr 2012 07:14:28 +0000 (09:14 +0200)
This not really threadsafe in any way.

gst/flv/gstflvdemux.c

index d88928913c81f96a17c4b7b107d267c595eeec05..63616d0701c21bd0a8b06b5374cb2483691d916e 100644 (file)
@@ -110,8 +110,8 @@ static void
 gst_flv_demux_parse_and_add_index_entry (GstFlvDemux * demux, GstClockTime ts,
     guint64 pos, gboolean keyframe)
 {
-  static GstIndexAssociation associations[2];
-  static GstIndexEntry *entry;
+  GstIndexAssociation associations[2];
+  GstIndexEntry *entry;
 
   GST_LOG_OBJECT (demux,
       "adding key=%d association %" GST_TIME_FORMAT "-> %" G_GUINT64_FORMAT,