mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 04:31:06 +00:00
flvdemux: Don't use static variables to hold index associations
This not really threadsafe in any way.
This commit is contained in:
parent
6a0339bf24
commit
acca0e77f1
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue