mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 00:01:23 +00:00
videoaggregator: Always set the pad's buffer_vinfo when storing a buffer
Otherwise it might be unset, and then the buffer is used and gst_video_frame_map() will crash because of invalid video-info. https://bugzilla.gnome.org/show_bug.cgi?id=753805
This commit is contained in:
parent
551e7b97f3
commit
09b4f050e0
1 changed files with 1 additions and 0 deletions
|
@ -1025,6 +1025,7 @@ gst_videoaggregator_fill_queues (GstVideoAggregator * vagg,
|
|||
GST_DEBUG_OBJECT (pad, "buffer duration is -1, start_time < "
|
||||
"output_start_time. Discarding old buffer");
|
||||
gst_buffer_replace (&pad->buffer, buf);
|
||||
pad->buffer_vinfo = *vinfo;
|
||||
gst_buffer_unref (buf);
|
||||
gst_aggregator_pad_drop_buffer (bpad);
|
||||
need_more_data = TRUE;
|
||||
|
|
Loading…
Reference in a new issue