Skip to content

Commit 03e7e06

Browse files
committed
MP4ライターテストから未使用のインポートとchannels関数を削除
1 parent 8fcf98d commit 03e7e06

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

tests/writer_mp4_tests.rs

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
use std::{collections::BTreeMap, path::PathBuf, sync::Arc, time::Duration};
22

33
use hisui::{
4-
audio::{AudioData, AudioDataReceiver, AudioDataSyncSender, AudioFormat, SAMPLE_RATE},
5-
channel,
4+
audio::{AudioData, AudioFormat, SAMPLE_RATE},
65
layout::{AggregatedSourceInfo, AssignedSource, Layout, Resolution},
76
layout_region::{Grid, Region},
87
media::{MediaSample, MediaStreamId},
98
metadata::{SourceId, SourceInfo},
109
processor::{MediaProcessor, MediaProcessorInput, MediaProcessorOutput},
1110
types::{CodecName, EvenUsize, PixelPosition},
12-
video::{FrameRate, VideoFormat, VideoFrame, VideoFrameReceiver, VideoFrameSyncSender},
11+
video::{FrameRate, VideoFormat, VideoFrame},
1312
writer_mp4::Mp4Writer,
1413
};
1514
use orfail::OrFail;
@@ -328,16 +327,6 @@ fn source(id: usize, start_timestamp: Duration, stop_timestamp: Duration) -> Sou
328327
}
329328
}
330329

331-
fn channels() -> (
332-
(AudioDataSyncSender, AudioDataReceiver),
333-
(VideoFrameSyncSender, VideoFrameReceiver),
334-
) {
335-
(
336-
channel::sync_channel_with_bound(1000),
337-
channel::sync_channel_with_bound(1000),
338-
)
339-
}
340-
341330
fn audio_data(source: &SourceInfo, i: usize, duration: Duration) -> AudioData {
342331
AudioData {
343332
source_id: Some(source.id.clone()),

0 commit comments

Comments
 (0)