mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 15:51:11 +00:00
resindvd: Apply caps to generated buffers
Avoid the new warning from the core about not being able to apply caps to NAV packet buffers, where resindvdsrc holds a ref.
This commit is contained in:
parent
860d5e7efe
commit
491a202d5c
1 changed files with 3 additions and 1 deletions
|
@ -866,8 +866,10 @@ rsn_dvdsrc_step (resinDvdSrc * src, gboolean have_dvd_lock)
|
||||||
gint event, len;
|
gint event, len;
|
||||||
|
|
||||||
/* Allocate an output buffer if there isn't a pending one */
|
/* Allocate an output buffer if there isn't a pending one */
|
||||||
if (src->alloc_buf == NULL)
|
if (src->alloc_buf == NULL) {
|
||||||
src->alloc_buf = gst_buffer_new_and_alloc (DVD_VIDEO_LB_LEN);
|
src->alloc_buf = gst_buffer_new_and_alloc (DVD_VIDEO_LB_LEN);
|
||||||
|
gst_buffer_set_caps (src->alloc_buf, GST_PAD_CAPS (GST_BASE_SRC_PAD (src)));
|
||||||
|
}
|
||||||
|
|
||||||
data = GST_BUFFER_DATA (src->alloc_buf);
|
data = GST_BUFFER_DATA (src->alloc_buf);
|
||||||
len = DVD_VIDEO_LB_LEN;
|
len = DVD_VIDEO_LB_LEN;
|
||||||
|
|
Loading…
Reference in a new issue