mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
openh264enc: Don't set caps manually
This will break the order of events in GStreamer.
This commit is contained in:
parent
18e7540263
commit
739a10d84e
1 changed files with 1 additions and 2 deletions
|
@ -542,13 +542,12 @@ static gboolean gst_openh264enc_set_format(GstVideoEncoder *encoder, GstVideoCod
|
||||||
"pixel-aspect-ratio", GST_TYPE_FRACTION, par_n, par_d,
|
"pixel-aspect-ratio", GST_TYPE_FRACTION, par_n, par_d,
|
||||||
"codec_data", GST_TYPE_BUFFER, codec_data,
|
"codec_data", GST_TYPE_BUFFER, codec_data,
|
||||||
NULL);
|
NULL);
|
||||||
ret = gst_pad_set_caps(GST_VIDEO_ENCODER_SRC_PAD(openh264enc), outcaps);
|
|
||||||
gst_buffer_unref(codec_data);
|
gst_buffer_unref(codec_data);
|
||||||
|
|
||||||
output_state = gst_video_encoder_set_output_state(encoder, outcaps, state);
|
output_state = gst_video_encoder_set_output_state(encoder, outcaps, state);
|
||||||
gst_video_codec_state_unref(output_state);
|
gst_video_codec_state_unref(output_state);
|
||||||
|
|
||||||
return TRUE;
|
return gst_video_encoder_negotiate (encoder);
|
||||||
}
|
}
|
||||||
|
|
||||||
static GstFlowReturn gst_openh264enc_handle_frame(GstVideoEncoder *encoder, GstVideoCodecFrame *frame)
|
static GstFlowReturn gst_openh264enc_handle_frame(GstVideoEncoder *encoder, GstVideoCodecFrame *frame)
|
||||||
|
|
Loading…
Reference in a new issue