mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-22 15:18:21 +00:00
libs: encoder: caps can change at any time
The encoder should be able to change its caps even it is already processing a stream. This is suppose to happen after a flush so the codedbuf_queue should be empty. https://bugzilla.gnome.org/show_bug.cgi?id=775490
This commit is contained in:
parent
7b3a51f145
commit
a0a2f7bfe8
1 changed files with 0 additions and 10 deletions
|
@ -735,9 +735,6 @@ gst_vaapi_encoder_set_codec_state (GstVaapiEncoder * encoder,
|
|||
g_return_val_if_fail (state != NULL,
|
||||
GST_VAAPI_ENCODER_STATUS_ERROR_INVALID_PARAMETER);
|
||||
|
||||
if (encoder->num_codedbuf_queued > 0)
|
||||
goto error_operation_failed;
|
||||
|
||||
if (!gst_video_info_is_equal (&state->info, &encoder->video_info)) {
|
||||
status = check_video_info (encoder, &state->info);
|
||||
if (status != GST_VAAPI_ENCODER_STATUS_SUCCESS)
|
||||
|
@ -745,13 +742,6 @@ gst_vaapi_encoder_set_codec_state (GstVaapiEncoder * encoder,
|
|||
encoder->video_info = state->info;
|
||||
}
|
||||
return gst_vaapi_encoder_reconfigure_internal (encoder);
|
||||
|
||||
/* ERRORS */
|
||||
error_operation_failed:
|
||||
{
|
||||
GST_ERROR ("could not change codec state after encoding started");
|
||||
return GST_VAAPI_ENCODER_STATUS_ERROR_OPERATION_FAILED;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue