flvdemux: Don't use static variables to hold index associations

This not really threadsafe in any way.
This commit is contained in:
Sebastian Dröge 2012-04-06 09:13:31 +02:00
parent 6a0339bf24
commit acca0e77f1

View file

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