Merge branch 'pr/594' into integration/pr-review-smoke-2026-07-13
This commit is contained in:
1 file changed
+23
@@ -2366,6 +2366,15 @@ impl Player {
|
||||
"Failed to create engine for streaming: {}",
|
||||
e
|
||||
);
|
||||
*current_streaming_source = None;
|
||||
*current_audio_data = None;
|
||||
thread_state.set_loaded_audio(false);
|
||||
thread_state
|
||||
.is_playing
|
||||
.store(false, Ordering::SeqCst);
|
||||
thread_state.record_stream_error(
|
||||
"Failed to create the playback engine for streaming",
|
||||
);
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -2452,6 +2461,13 @@ impl Player {
|
||||
|
||||
if !source.has_min_buffer() {
|
||||
log::error!("Streaming: timeout waiting for initial buffer");
|
||||
*current_streaming_source = None;
|
||||
*current_audio_data = None;
|
||||
thread_state.set_loaded_audio(false);
|
||||
thread_state.is_playing.store(false, Ordering::SeqCst);
|
||||
thread_state.record_stream_error(
|
||||
"Timed out waiting for the stream buffer to fill",
|
||||
);
|
||||
return;
|
||||
}
|
||||
if resume_buffer_target > 0
|
||||
@@ -2480,6 +2496,13 @@ impl Player {
|
||||
"Failed to create incremental streaming source: {}",
|
||||
e
|
||||
);
|
||||
*current_streaming_source = None;
|
||||
*current_audio_data = None;
|
||||
thread_state.set_loaded_audio(false);
|
||||
thread_state.is_playing.store(false, Ordering::SeqCst);
|
||||
thread_state.record_stream_error(
|
||||
"Failed to start the streaming decoder",
|
||||
);
|
||||
return;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user