summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorZhao Zhili <quinkblack@foxmail.com>2021-08-09 15:19:11 +0800
committerMarton Balint <cus@passwd.hu>2021-09-18 22:10:03 +0200
commite4f499f8422708fc56f8851220b3ae78ecee76f8 (patch)
tree87249aced68aa6833b32e4f42f3f065a88224102 /libavformat
parentfc9832f2557be0633e08963b8372d1cf7f4d6aea (diff)
avformat/libsrt: remove url_get_file_handle implementation
SRTSOCKET is an abstraction designed by libsrt, it's not guaranteed to be a real file descriptor. Even if it is, it should not be operated directly outside of libsrt. Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/libsrt.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/libavformat/libsrt.c b/libavformat/libsrt.c
index 4c32bc68a8..a80f24957f 100644
--- a/libavformat/libsrt.c
+++ b/libavformat/libsrt.c
@@ -712,12 +712,6 @@ static int libsrt_close(URLContext *h)
return 0;
}
-static int libsrt_get_file_handle(URLContext *h)
-{
- SRTContext *s = h->priv_data;
- return s->fd;
-}
-
static const AVClass libsrt_class = {
.class_name = "libsrt",
.item_name = av_default_item_name,
@@ -731,7 +725,6 @@ const URLProtocol ff_libsrt_protocol = {
.url_read = libsrt_read,
.url_write = libsrt_write,
.url_close = libsrt_close,
- .url_get_file_handle = libsrt_get_file_handle,
.priv_data_size = sizeof(SRTContext),
.flags = URL_PROTOCOL_FLAG_NETWORK,
.priv_data_class = &libsrt_class,