summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2017-11-22 14:35:31 +0100
committerSebastian Dröge <sebastian@centricular.com>2017-11-24 11:13:05 +0200
commit93d29e80300f566b7a8e7d86beecb578fe03821c (patch)
tree65902b5b3a7183e1a411c29746e5bb9f95394e5f /gst
parent5ac886d85aab4b919f84fb80e2d1ef36dc8e647d (diff)
downloadgstreamer-plugins-bad-93d29e80300f566b7a8e7d86beecb578fe03821c.tar.gz
h265parse: early set src caps when input not byte-stream
When input is not in byte-stream format there is no need to wait for the first buffer before setting src caps. We already have all the information from the input codec_data. This allow us to already configure downstream elements allowing them, for example, to already allocate their internal buffers as they know the format of the input they are about to receive. Same change as the one I just did in h264parse. https://bugzilla.gnome.org/show_bug.cgi?id=790709
Diffstat (limited to 'gst')
-rw-r--r--gst/videoparsers/gsth265parse.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gst/videoparsers/gsth265parse.c b/gst/videoparsers/gsth265parse.c
index 85be01610..7800b15ae 100644
--- a/gst/videoparsers/gsth265parse.c
+++ b/gst/videoparsers/gsth265parse.c
@@ -2121,6 +2121,10 @@ gst_h265_parse_set_caps (GstBaseParse * parse, GstCaps * caps)
if (h265parse->align == GST_H265_PARSE_ALIGN_NAL)
h265parse->split_packetized = TRUE;
h265parse->packetized = TRUE;
+
+ /* We got all the caps infos from the codec_data so can already set the
+ * src caps. */
+ gst_h265_parse_update_src_caps (h265parse, NULL);
}
return TRUE;