From 8fcf2f57a4e196e24e112407c82a1075e6738ed1 Mon Sep 17 00:00:00 2001 From: Paul Berberian Date: Tue, 19 Mar 2024 18:30:44 +0100 Subject: [PATCH] Rename segment_buffer file into the new segment_sink name We changed the name of classes from *SegmentBuffer to *SegmentSink but didn't actually update the file names. This is now done. --- ...io_video_segment_buffer.ts => audio_video_segment_sink.ts} | 0 src/core/segment_sinks/implementations/audio_video/index.ts | 2 +- src/core/segment_sinks/implementations/text/index.ts | 4 ++-- .../text/{text_segment_buffer.ts => text_segment_sink.ts} | 0 src/core/segment_sinks/index.ts | 2 +- .../{segment_buffers_store.ts => segment_sinks_store.ts} | 0 src/main_thread/api/debug/buffer_graph.ts | 2 +- src/main_thread/api/debug/modules/segment_buffer_content.ts | 2 +- src/main_thread/api/public_api.ts | 2 +- src/main_thread/init/multi_thread_content_initializer.ts | 2 +- src/main_thread/init/types.ts | 2 +- src/multithread_types.ts | 2 +- 12 files changed, 10 insertions(+), 10 deletions(-) rename src/core/segment_sinks/implementations/audio_video/{audio_video_segment_buffer.ts => audio_video_segment_sink.ts} (100%) rename src/core/segment_sinks/implementations/text/{text_segment_buffer.ts => text_segment_sink.ts} (100%) rename src/core/segment_sinks/{segment_buffers_store.ts => segment_sinks_store.ts} (100%) diff --git a/src/core/segment_sinks/implementations/audio_video/audio_video_segment_buffer.ts b/src/core/segment_sinks/implementations/audio_video/audio_video_segment_sink.ts similarity index 100% rename from src/core/segment_sinks/implementations/audio_video/audio_video_segment_buffer.ts rename to src/core/segment_sinks/implementations/audio_video/audio_video_segment_sink.ts diff --git a/src/core/segment_sinks/implementations/audio_video/index.ts b/src/core/segment_sinks/implementations/audio_video/index.ts index 60c526c811..04592630b4 100644 --- a/src/core/segment_sinks/implementations/audio_video/index.ts +++ b/src/core/segment_sinks/implementations/audio_video/index.ts @@ -14,5 +14,5 @@ * limitations under the License. */ -import AudioVideoSegmentSink from "./audio_video_segment_buffer"; +import AudioVideoSegmentSink from "./audio_video_segment_sink"; export default AudioVideoSegmentSink; diff --git a/src/core/segment_sinks/implementations/text/index.ts b/src/core/segment_sinks/implementations/text/index.ts index fd2de8c034..b1a10f2ab9 100644 --- a/src/core/segment_sinks/implementations/text/index.ts +++ b/src/core/segment_sinks/implementations/text/index.ts @@ -1,5 +1,5 @@ -import type { ITextDisplayerInterface } from "./text_segment_buffer"; -import TextSegmentSink from "./text_segment_buffer"; +import type { ITextDisplayerInterface } from "./text_segment_sink"; +import TextSegmentSink from "./text_segment_sink"; export default TextSegmentSink; export type { ITextDisplayerInterface }; diff --git a/src/core/segment_sinks/implementations/text/text_segment_buffer.ts b/src/core/segment_sinks/implementations/text/text_segment_sink.ts similarity index 100% rename from src/core/segment_sinks/implementations/text/text_segment_buffer.ts rename to src/core/segment_sinks/implementations/text/text_segment_sink.ts diff --git a/src/core/segment_sinks/index.ts b/src/core/segment_sinks/index.ts index 8c5797ceb0..3d3418d0be 100644 --- a/src/core/segment_sinks/index.ts +++ b/src/core/segment_sinks/index.ts @@ -38,7 +38,7 @@ import { getFirstSegmentAfterPeriod, getLastSegmentBeforePeriod, } from "./inventory"; -import SegmentSinksStore from "./segment_buffers_store"; +import SegmentSinksStore from "./segment_sinks_store"; export default SegmentSinksStore; export type { diff --git a/src/core/segment_sinks/segment_buffers_store.ts b/src/core/segment_sinks/segment_sinks_store.ts similarity index 100% rename from src/core/segment_sinks/segment_buffers_store.ts rename to src/core/segment_sinks/segment_sinks_store.ts diff --git a/src/main_thread/api/debug/buffer_graph.ts b/src/main_thread/api/debug/buffer_graph.ts index 0e7d098402..8967dd0957 100644 --- a/src/main_thread/api/debug/buffer_graph.ts +++ b/src/main_thread/api/debug/buffer_graph.ts @@ -1,4 +1,4 @@ -import type { IBufferedChunkSnapshot } from "../../../core/segment_sinks/segment_buffers_store"; +import type { IBufferedChunkSnapshot } from "../../../core/segment_sinks/segment_sinks_store"; import type { IRepresentationMetadata } from "../../../manifest"; const BUFFER_WIDTH_IN_SECONDS = 30 * 60; diff --git a/src/main_thread/api/debug/modules/segment_buffer_content.ts b/src/main_thread/api/debug/modules/segment_buffer_content.ts index c632ac30df..c7e822b6d9 100644 --- a/src/main_thread/api/debug/modules/segment_buffer_content.ts +++ b/src/main_thread/api/debug/modules/segment_buffer_content.ts @@ -1,4 +1,4 @@ -import type { ISegmentSinkMetrics } from "../../../../core/segment_sinks/segment_buffers_store"; +import type { ISegmentSinkMetrics } from "../../../../core/segment_sinks/segment_sinks_store"; import type { IBufferType } from "../../../../core/types"; import type { IAdaptationMetadata, diff --git a/src/main_thread/api/public_api.ts b/src/main_thread/api/public_api.ts index 3ade1134e3..5581346fc5 100644 --- a/src/main_thread/api/public_api.ts +++ b/src/main_thread/api/public_api.ts @@ -33,7 +33,7 @@ import hasMseInWorker from "../../compat/has_mse_in_worker"; import hasWorkerApi from "../../compat/has_worker_api"; import isDebugModeEnabled from "../../compat/is_debug_mode_enabled"; import config from "../../config"; -import type { ISegmentSinkMetrics } from "../../core/segment_sinks/segment_buffers_store"; +import type { ISegmentSinkMetrics } from "../../core/segment_sinks/segment_sinks_store"; import type { IAdaptationChoice, IInbandEvent, diff --git a/src/main_thread/init/multi_thread_content_initializer.ts b/src/main_thread/init/multi_thread_content_initializer.ts index 6ddf53a6e2..107fa1cb14 100644 --- a/src/main_thread/init/multi_thread_content_initializer.ts +++ b/src/main_thread/init/multi_thread_content_initializer.ts @@ -1,7 +1,7 @@ import type { IMediaElement } from "../../compat/browser_compatibility_types"; import mayMediaElementFailOnUndecipherableData from "../../compat/may_media_element_fail_on_undecipherable_data"; import shouldReloadMediaSourceOnDecipherabilityUpdate from "../../compat/should_reload_media_source_on_decipherability_update"; -import type { ISegmentSinkMetrics } from "../../core/segment_sinks/segment_buffers_store"; +import type { ISegmentSinkMetrics } from "../../core/segment_sinks/segment_sinks_store"; import type { IAdaptiveRepresentationSelectorArguments, IAdaptationChoice, diff --git a/src/main_thread/init/types.ts b/src/main_thread/init/types.ts index c0911b5b84..46e5a25dbc 100644 --- a/src/main_thread/init/types.ts +++ b/src/main_thread/init/types.ts @@ -15,7 +15,7 @@ */ import type { IMediaElement } from "../../compat/browser_compatibility_types"; -import type { ISegmentSinkMetrics } from "../../core/segment_sinks/segment_buffers_store"; +import type { ISegmentSinkMetrics } from "../../core/segment_sinks/segment_sinks_store"; import type { IBufferType, IAdaptationChoice, IInbandEvent } from "../../core/types"; import type { IPeriodsUpdateResult, diff --git a/src/multithread_types.ts b/src/multithread_types.ts index d8bd6b19b6..bdd44b0771 100644 --- a/src/multithread_types.ts +++ b/src/multithread_types.ts @@ -4,7 +4,7 @@ * multithread situation. */ -import type { ISegmentSinkMetrics } from "./core/segment_sinks/segment_buffers_store"; +import type { ISegmentSinkMetrics } from "./core/segment_sinks/segment_sinks_store"; import type { IResolutionInfo, IManifestFetcherSettings,