summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2014-11-06 11:53:04 +0100
committerSebastian Dröge <sebastian@centricular.com>2014-11-06 11:54:15 +0100
commit840840c17e60490506d82e8a47c10ae31a583b6d (patch)
tree9d66d272ce7d120e07875c89dc93a9e5df329b31
parentccc6bbf8fe12d6cd0882eb70e9875b6b5bbbb40b (diff)
downloadgstreamer-plugins-bad-840840c17e60490506d82e8a47c10ae31a583b6d.tar.gz
h265parse: don't unnecesarily set src_caps
https://bugzilla.gnome.org/show_bug.cgi?id=739374
-rw-r--r--gst/videoparsers/gsth265parse.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/gst/videoparsers/gsth265parse.c b/gst/videoparsers/gsth265parse.c
index 269726836..9a98dcc76 100644
--- a/gst/videoparsers/gsth265parse.c
+++ b/gst/videoparsers/gsth265parse.c
@@ -1335,6 +1335,19 @@ gst_h265_parse_update_src_caps (GstH265Parse * h265parse, GstCaps * caps)
par_n, par_d, NULL);
}
+ /* set profile and level in caps */
+ if (sps) {
+ GstMapInfo map;
+ GstBuffer *sps_buf = h265parse->sps_nals[sps->id];
+
+ if (sps_buf) {
+ gst_buffer_map (sps_buf, &map, GST_MAP_READ);
+ gst_codec_utils_h265_caps_set_level_tier_and_profile (caps,
+ map.data + 1, map.size - 1);
+ gst_buffer_unmap (sps_buf, &map);
+ }
+ }
+
src_caps = gst_pad_get_current_caps (GST_BASE_PARSE_SRC_PAD (h265parse));
if (src_caps
@@ -1361,19 +1374,6 @@ gst_h265_parse_update_src_caps (GstH265Parse * h265parse, GstCaps * caps)
gst_buffer_replace (&h265parse->codec_data, NULL);
}
- /* set profile and level in caps */
- if (sps) {
- GstMapInfo map;
- GstBuffer *sps_buf = h265parse->sps_nals[sps->id];
-
- if (sps_buf) {
- gst_buffer_map (sps_buf, &map, GST_MAP_READ);
- gst_codec_utils_h265_caps_set_level_tier_and_profile (caps,
- map.data + 1, map.size - 1);
- gst_buffer_unmap (sps_buf, &map);
- }
- }
-
gst_pad_set_caps (GST_BASE_PARSE_SRC_PAD (h265parse), caps);
}