We would end up with cur_position not set but proceed being at its
default value of TRUE. Instead, properly set proceed to FALSE
CID #
1409855
proceed = FALSE;
GST_WARNING_OBJECT (dec, "switching to new output mode failed");
}
- } else
+ } else {
GST_DEBUG_OBJECT (dec,
"cannot call set_output_mode, since it is NULL");
+ proceed = FALSE;
+ }
if (proceed) {
gst_nonstream_audio_decoder_output_new_segment (dec, cur_position);
proceed = FALSE;
GST_WARNING_OBJECT (dec, "switching to new subsong mode failed");
}
- } else
+ } else {
GST_DEBUG_OBJECT (dec,
"cannot call set_subsong_mode, since it is NULL");
+ proceed = FALSE;
+ }
if (proceed) {
if (GST_CLOCK_TIME_IS_VALID (cur_position))