mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +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
81a78449d5
commit
708936de49
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