mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
schroenc: When the source pad isn't linked, use the pad template
For negotiation, use the source pad pad template when it doesn't have a peer.
This commit is contained in:
parent
b4fd433c57
commit
f80e4a7181
1 changed files with 5 additions and 0 deletions
|
@ -263,6 +263,11 @@ gst_schro_enc_set_format (GstBaseVideoEncoder * base_video_encoder,
|
|||
caps =
|
||||
gst_pad_get_allowed_caps (GST_BASE_VIDEO_CODEC_SRC_PAD
|
||||
(base_video_encoder));
|
||||
if (caps == NULL) {
|
||||
caps =
|
||||
gst_caps_copy (gst_pad_get_pad_template_caps
|
||||
(GST_BASE_VIDEO_CODEC_SRC_PAD (base_video_encoder)));
|
||||
}
|
||||
|
||||
if (gst_caps_is_empty (caps)) {
|
||||
gst_caps_unref (caps);
|
||||
|
|
Loading…
Reference in a new issue