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,6 +783,8 @@ gst_schro_enc_process (GstSchroEnc * schro_enc)
|
|||
frame = NULL;
|
||||
}
|
||||
|
||||
/* FIXME: Get the frame from somewhere somehow... */
|
||||
if (frame) {
|
||||
if (SCHRO_PARSE_CODE_IS_SEQ_HEADER (encoded_buffer->data[4])) {
|
||||
frame->is_sync_point = TRUE;
|
||||
}
|
||||
|
@ -795,6 +797,7 @@ gst_schro_enc_process (GstSchroEnc * schro_enc)
|
|||
GST_DEBUG ("pad_push returned %d", ret);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case SCHRO_STATE_AGAIN:
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue