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>
This commit is contained in:
parent
fc9832f255
commit
e4f499f842
@ -712,12 +712,6 @@ static int libsrt_close(URLContext *h)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int libsrt_get_file_handle(URLContext *h)
|
|
||||||
{
|
|
||||||
SRTContext *s = h->priv_data;
|
|
||||||
return s->fd;
|
|
||||||
}
|
|
||||||
|
|
||||||
static const AVClass libsrt_class = {
|
static const AVClass libsrt_class = {
|
||||||
.class_name = "libsrt",
|
.class_name = "libsrt",
|
||||||
.item_name = av_default_item_name,
|
.item_name = av_default_item_name,
|
||||||
@ -731,7 +725,6 @@ const URLProtocol ff_libsrt_protocol = {
|
|||||||
.url_read = libsrt_read,
|
.url_read = libsrt_read,
|
||||||
.url_write = libsrt_write,
|
.url_write = libsrt_write,
|
||||||
.url_close = libsrt_close,
|
.url_close = libsrt_close,
|
||||||
.url_get_file_handle = libsrt_get_file_handle,
|
|
||||||
.priv_data_size = sizeof(SRTContext),
|
.priv_data_size = sizeof(SRTContext),
|
||||||
.flags = URL_PROTOCOL_FLAG_NETWORK,
|
.flags = URL_PROTOCOL_FLAG_NETWORK,
|
||||||
.priv_data_class = &libsrt_class,
|
.priv_data_class = &libsrt_class,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user