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 d889289..63616d0 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,