From af4b7855e115878b7b87c7fe2e719d62c07af40d Mon Sep 17 00:00:00 2001 From: Romain Vimont Date: Thu, 9 Jun 2022 15:01:03 +0200 Subject: [PATCH] Remove unused stream.h The file was not removed by 7dec225cebbf208cf1d607bd45fb49e3a9fa1167. --- app/src/stream.h | 51 ------------------------------------------------ 1 file changed, 51 deletions(-) delete mode 100644 app/src/stream.h diff --git a/app/src/stream.h b/app/src/stream.h deleted file mode 100644 index bdcefe39..00000000 --- a/app/src/stream.h +++ /dev/null @@ -1,51 +0,0 @@ -#ifndef STREAM_H -#define STREAM_H - -#include "common.h" - -#include -#include -#include -#include - -#include "trait/packet_sink.h" -#include "util/net.h" -#include "util/thread.h" - -#define STREAM_MAX_SINKS 2 - -struct stream { - sc_socket socket; - sc_thread thread; - - struct sc_packet_sink *sinks[STREAM_MAX_SINKS]; - unsigned sink_count; - - AVCodecContext *codec_ctx; - AVCodecParserContext *parser; - // successive packets may need to be concatenated, until a non-config - // packet is available - AVPacket *pending; - - const struct stream_callbacks *cbs; - void *cbs_userdata; -}; - -struct stream_callbacks { - void (*on_eos)(struct stream *stream, void *userdata); -}; - -void -stream_init(struct stream *stream, sc_socket socket, - const struct stream_callbacks *cbs, void *cbs_userdata); - -void -stream_add_sink(struct stream *stream, struct sc_packet_sink *sink); - -bool -stream_start(struct stream *stream); - -void -stream_join(struct stream *stream); - -#endif