diff options
author | Jan Schmidt <thaytan@noraisin.net> | 2010-05-06 22:38:22 +1000 |
---|---|---|
committer | Jan Schmidt <thaytan@noraisin.net> | 2010-05-06 22:39:05 +1000 |
commit | 491a202d5c9914b750ea23053d7e781c741beeda (patch) | |
tree | 34b31739e2b54e7cfe8c0121b828786c819ff190 /ext/resindvd/resindvdsrc.c | |
parent | 860d5e7efe433301c1265ca3ad8e78691ee6910c (diff) | |
download | gstreamer-plugins-bad-491a202d5c9914b750ea23053d7e781c741beeda.tar.gz |
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.
Diffstat (limited to 'ext/resindvd/resindvdsrc.c')
-rw-r--r-- | ext/resindvd/resindvdsrc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/resindvd/resindvdsrc.c b/ext/resindvd/resindvdsrc.c index 95ab37410..590fde630 100644 --- a/ext/resindvd/resindvdsrc.c +++ b/ext/resindvd/resindvdsrc.c @@ -866,8 +866,10 @@ rsn_dvdsrc_step (resinDvdSrc * src, gboolean have_dvd_lock) gint event, len; /* 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); + gst_buffer_set_caps (src->alloc_buf, GST_PAD_CAPS (GST_BASE_SRC_PAD (src))); + } data = GST_BUFFER_DATA (src->alloc_buf); len = DVD_VIDEO_LB_LEN; |