mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +00:00
gl/mixer: don't segfault when we don't have a buffer
https://bugzilla.gnome.org/show_bug.cgi?id=729257
This commit is contained in:
parent
1512666ac7
commit
397928714d
1 changed files with 5 additions and 5 deletions
|
@ -1648,6 +1648,11 @@ gst_gl_mixer_process_textures (GstGLMixer * mix, GstBuffer * outbuf)
|
|||
while (walk) { /* We walk with this list because it's ordered */
|
||||
GstGLMixerPad *pad = GST_GL_MIXER_PAD (walk->data);
|
||||
GstGLMixerCollect *mixcol = pad->mixcol;
|
||||
GstGLMixerFrameData *frame;
|
||||
|
||||
frame = g_ptr_array_index (mix->frames, array_index);
|
||||
frame->pad = pad;
|
||||
frame->texture = 0;
|
||||
|
||||
walk = g_slist_next (walk);
|
||||
|
||||
|
@ -1656,11 +1661,6 @@ gst_gl_mixer_process_textures (GstGLMixer * mix, GstBuffer * outbuf)
|
|||
gint64 stream_time;
|
||||
GstSegment *seg;
|
||||
guint in_tex;
|
||||
GstGLMixerFrameData *frame;
|
||||
|
||||
frame = g_ptr_array_index (mix->frames, array_index);
|
||||
frame->pad = pad;
|
||||
frame->texture = 0;
|
||||
|
||||
seg = &mixcol->collect.segment;
|
||||
|
||||
|
|
Loading…
Reference in a new issue