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
@ -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…
x
Reference in New Issue
Block a user