mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-05 18:22:23 +00:00
srt: initialize list access within locked region
This commit is contained in:
parent
ce92cb81a0
commit
cc11a7f9d7
1 changed files with 2 additions and 1 deletions
|
@ -1292,9 +1292,10 @@ gst_srt_object_write_to_callers (GstSRTObject * srtobject,
|
||||||
GstBufferList * headers,
|
GstBufferList * headers,
|
||||||
const GstMapInfo * mapinfo, GCancellable * cancellable, GError ** error)
|
const GstMapInfo * mapinfo, GCancellable * cancellable, GError ** error)
|
||||||
{
|
{
|
||||||
GList *callers = srtobject->callers;
|
GList *callers;
|
||||||
|
|
||||||
GST_OBJECT_LOCK (srtobject->element);
|
GST_OBJECT_LOCK (srtobject->element);
|
||||||
|
callers = srtobject->callers;
|
||||||
while (callers != NULL) {
|
while (callers != NULL) {
|
||||||
gssize len = 0;
|
gssize len = 0;
|
||||||
const guint8 *msg = mapinfo->data;
|
const guint8 *msg = mapinfo->data;
|
||||||
|
|
Loading…
Reference in a new issue