mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-21 07:46:38 +00:00
parent
3b7d758ce2
commit
413716d1d9
1 changed files with 3 additions and 4 deletions
|
@ -1297,9 +1297,9 @@ gst_h264_parse_update_src_caps (GstH264Parse * h264parse, GstCaps * caps)
|
||||||
GST_DEBUG_OBJECT (h264parse, "setting new codec_data");
|
GST_DEBUG_OBJECT (h264parse, "setting new codec_data");
|
||||||
gst_caps_set_simple (src_caps, "codec_data", GST_TYPE_BUFFER, buf,
|
gst_caps_set_simple (src_caps, "codec_data", GST_TYPE_BUFFER, buf,
|
||||||
NULL);
|
NULL);
|
||||||
gst_buffer_unref (buf);
|
|
||||||
modified = TRUE;
|
modified = TRUE;
|
||||||
}
|
}
|
||||||
|
gst_buffer_unref (buf);
|
||||||
} else {
|
} else {
|
||||||
GST_DEBUG_OBJECT (h264parse, "no codec_data yet");
|
GST_DEBUG_OBJECT (h264parse, "no codec_data yet");
|
||||||
}
|
}
|
||||||
|
@ -1314,10 +1314,9 @@ gst_h264_parse_update_src_caps (GstH264Parse * h264parse, GstCaps * caps)
|
||||||
/* save as new caps, caps will be set when pushing data */
|
/* save as new caps, caps will be set when pushing data */
|
||||||
/* avoid replacing caps by a mere identical copy, thereby triggering
|
/* avoid replacing caps by a mere identical copy, thereby triggering
|
||||||
* negotiating (which e.g. some container might not appreciate) */
|
* negotiating (which e.g. some container might not appreciate) */
|
||||||
if (modified) {
|
if (modified)
|
||||||
gst_caps_replace (&h264parse->src_caps, src_caps);
|
gst_caps_replace (&h264parse->src_caps, src_caps);
|
||||||
gst_caps_unref (src_caps);
|
gst_caps_unref (src_caps);
|
||||||
}
|
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue