mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 06:16:36 +00:00
Don't get the output format from the codec before it is ready
Apparently things are crashing otherwise.
This commit is contained in:
parent
c4258069bb
commit
bafd4a0b19
1 changed files with 7 additions and 7 deletions
|
@ -631,13 +631,13 @@ gst_amc_video_dec_loop (GstAmcVideoDec * self)
|
|||
GST_VIDEO_DECODER_STREAM_LOCK (self);
|
||||
|
||||
retry:
|
||||
if (self->input_state_changed) {
|
||||
idx = INFO_OUTPUT_FORMAT_CHANGED;
|
||||
} else {
|
||||
GST_VIDEO_DECODER_STREAM_UNLOCK (self);
|
||||
idx = gst_amc_codec_dequeue_output_buffer (self->codec, &buffer_info, -1);
|
||||
GST_VIDEO_DECODER_STREAM_LOCK (self);
|
||||
}
|
||||
/*if (self->input_state_changed) {
|
||||
idx = INFO_OUTPUT_FORMAT_CHANGED;
|
||||
} else { */
|
||||
GST_VIDEO_DECODER_STREAM_UNLOCK (self);
|
||||
idx = gst_amc_codec_dequeue_output_buffer (self->codec, &buffer_info, -1);
|
||||
GST_VIDEO_DECODER_STREAM_LOCK (self);
|
||||
/*} */
|
||||
|
||||
if (idx < 0) {
|
||||
switch (idx) {
|
||||
|
|
Loading…
Reference in a new issue