mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-03 05:59:10 +00:00
schro: Fix segfault on EOS
This commit is contained in:
parent
69a5d3c067
commit
0f6d3e7b4f
1 changed files with 11 additions and 8 deletions
|
@ -783,17 +783,20 @@ gst_schro_enc_process (GstSchroEnc * schro_enc)
|
||||||
frame = NULL;
|
frame = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (SCHRO_PARSE_CODE_IS_SEQ_HEADER (encoded_buffer->data[4])) {
|
/* FIXME: Get the frame from somewhere somehow... */
|
||||||
frame->is_sync_point = TRUE;
|
if (frame) {
|
||||||
}
|
if (SCHRO_PARSE_CODE_IS_SEQ_HEADER (encoded_buffer->data[4])) {
|
||||||
|
frame->is_sync_point = TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
frame->src_buffer = gst_schro_wrap_schro_buffer (encoded_buffer);
|
frame->src_buffer = gst_schro_wrap_schro_buffer (encoded_buffer);
|
||||||
|
|
||||||
ret = gst_base_video_encoder_finish_frame (base_video_encoder, frame);
|
ret = gst_base_video_encoder_finish_frame (base_video_encoder, frame);
|
||||||
|
|
||||||
if (ret != GST_FLOW_OK) {
|
if (ret != GST_FLOW_OK) {
|
||||||
GST_DEBUG ("pad_push returned %d", ret);
|
GST_DEBUG ("pad_push returned %d", ret);
|
||||||
return ret;
|
return ret;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case SCHRO_STATE_AGAIN:
|
case SCHRO_STATE_AGAIN:
|
||||||
|
|
Loading…
Reference in a new issue