mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
aacparse: gst_pad_get_allowed_caps() will return NULL if there is no peer
This commit is contained in:
parent
7874bba773
commit
6d6c6aac13
1 changed files with 1 additions and 1 deletions
|
@ -215,7 +215,7 @@ gst_aac_parse_set_src_caps (GstAacParse * aacparse, GstCaps * sink_caps)
|
|||
gst_structure_set (s, "stream-format", G_TYPE_STRING, stream_format, NULL);
|
||||
|
||||
allowed = gst_pad_get_allowed_caps (GST_BASE_PARSE (aacparse)->srcpad);
|
||||
if (!gst_caps_can_intersect (src_caps, allowed)) {
|
||||
if (allowed && !gst_caps_can_intersect (src_caps, allowed)) {
|
||||
GST_DEBUG_OBJECT (GST_BASE_PARSE (aacparse)->srcpad,
|
||||
"Caps can not intersect");
|
||||
if (aacparse->header_type == DSPAAC_HEADER_ADTS) {
|
||||
|
|
Loading…
Reference in a new issue