summaryrefslogtreecommitdiffstats
path: root/libavformat/unix.c
Commit message (Collapse)AuthorAgeFilesLines
* avformat/unix: set is_streamed to truedank0742025-02-071-0/+1
| | | | | | | | | | | Currently when a Unix Domain Socket is used as input there is a loss of data when data is consumed from the stream. Setting is_streamed to true fixes this, since the unix domain socket is now treated like a consumable stream. Fixes: #9346 Signed-off-by: dank074 <[email protected]> Reviewed-by: Leo Izen <[email protected]>
* all: use designated initializers for AVOption.unitAnton Khirnov2024-02-141-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | Makes it robust against adding fields before it, which will be useful in following commits. Majority of the patch generated by the following Coccinelle script: @@ typedef AVOption; identifier arr_name; initializer list il; initializer list[8] il1; expression tail; @@ AVOption arr_name[] = { il, { il1, - tail + .unit = tail }, ... }; with some manual changes, as the script: * has trouble with options defined inside macros * sometimes does not handle options under an #else branch * sometimes swallows whitespace
* Revert "all: Don't set AVClass.item_name to its default value"Anton Khirnov2024-01-201-0/+1
| | | | | | | Some callers assume that item_name is always set, so this may be considered an API break. This reverts commit 0c6203c97a99f69dbaa6e4011d48c331e1111f5e.
* all: Don't set AVClass.item_name to its default valueAndreas Rheinhardt2023-12-221-1/+0
| | | | | | | | Unnecessary since acf63d5350adeae551d412db699f8ca03f7e76b9; also avoids relocations. Reviewed-by: Anton Khirnov <[email protected]> Signed-off-by: Andreas Rheinhardt <[email protected]>
* lavf/network: log ff_socket() errors to proper contexts rather than NULLAnton Khirnov2022-01-211-1/+1
|
* avformat/unix: fix handling of EOF in case of SOCK_STREAM.Bela Bodecs2018-03-211-0/+2
| | | | | | | When recv() returns 0 in case of SOCK_STREAM type, it means EOF and with this patch returns value accordingly. Signed-off-by: Bela Bodecs <[email protected]>
* Merge commit '3ee2ec5ec1e39a438f89302d949c93a1b5d365a2'Derek Buitenhuis2016-04-211-0/+3
|\ | | | | | | | | | | | | * commit '3ee2ec5ec1e39a438f89302d949c93a1b5d365a2': unix: Use rw_timeout for setting the connect timeout Merged-by: Derek Buitenhuis <[email protected]>
| * unix: Use rw_timeout for setting the connect timeoutMartin Storsjö2016-03-241-0/+3
| | | | | | | | Signed-off-by: Martin Storsjö <[email protected]>
* | Merge commit '2758cdedfb7ac61f8b5e4861f99218b6fd43491d'Derek Buitenhuis2016-02-291-1/+1
|\| | | | | | | | | | | | | | | | | | | | | This commit also disables the async fate test, because it used internal APIs in a non-kosher way, which no longer exists. * commit '2758cdedfb7ac61f8b5e4861f99218b6fd43491d': lavf: reorganize URLProtocols Merged-by: Derek Buitenhuis <[email protected]>
| * lavf: reorganize URLProtocolsAnton Khirnov2016-02-221-1/+1
| | | | | | | | | | | | | | | | | | | | Instead of a linked list constructed at av_register_all(), store them in a constant array of pointers. Since no registration is necessary now, this removes some global state from lavf. This will also allow the urlprotocol layer caller to limit the available protocols in a simple and flexible way in the following commits.
* | Merge commit '29c2d06d67724e994980045afa055c6c34611b30'Derek Buitenhuis2016-02-241-1/+0
|\| | | | | | | | | | | | | * commit '29c2d06d67724e994980045afa055c6c34611b30': cosmetics: Drop empty comment lines Merged-by: Derek Buitenhuis <[email protected]>
| * cosmetics: Drop empty comment linesDiego Biurrun2016-02-181-1/+0
| |
* | avformat: use AV_OPT_TYPE_BOOL in a bunch of placesClément Bœsch2015-12-041-1/+1
| |
* | Merge commit '27852f2f1dec3749ea79883b70484c841169f747'Michael Niedermayer2015-04-091-5/+4
|\| | | | | | | | | | | | | * commit '27852f2f1dec3749ea79883b70484c841169f747': libavformat: Handle error return from ff_listen_bind Merged-by: Michael Niedermayer <[email protected]>
| * libavformat: Handle error return from ff_listen_bindAnders Nystrom2015-04-091-5/+4
| | | | | | | | | | | | | | Handle error return from ff_listen_bind without leaking file descriptors. Signed-off-by: Anders Nystrom <[email protected]> Signed-off-by: Luca Barbato <[email protected]>
* | Merge commit '6ee1cb5740e7490151db7dcec7e20ceaf8a2fe1f'Michael Niedermayer2014-08-251-1/+1
|\| | | | | | | | | | | | | * commit '6ee1cb5740e7490151db7dcec7e20ceaf8a2fe1f': libavformat: use MSG_NOSIGNAL when applicable Merged-by: Michael Niedermayer <[email protected]>
| * libavformat: use MSG_NOSIGNAL when applicableRémi Denis-Courmont2014-08-251-1/+1
| | | | | | | | | | | | | | If the remote end of a connection oriented socket hangs up, generating an EPIPE error is preferable over an unhandled SIGPIPE signal. Signed-off-by: Martin Storsjö <[email protected]>
* | avformat/unix: reshuffle #includesMichael Niedermayer2013-08-211-3/+1
| | | | | | | | | | | | This should fix openbsd while hopefully also working on solaris & android Signed-off-by: Michael Niedermayer <[email protected]>
* | avformat/unix: include sys/socket.hMichael Niedermayer2013-08-211-0/+1
| | | | | | | | | | | | unbreak android ndk r8 build Signed-off-by: Michael Niedermayer <[email protected]>
* | Merge commit 'abe5268c3328bf0e8fcfb7dc6e231b8920177c3a'Michael Niedermayer2013-08-061-1/+1
|\| | | | | | | | | | | | | | | | | | | * commit 'abe5268c3328bf0e8fcfb7dc6e231b8920177c3a': tcp: Use a different log message and level if there's more addresses to try Conflicts: libavformat/tcp.c Merged-by: Michael Niedermayer <[email protected]>
| * tcp: Use a different log message and level if there's more addresses to tryMartin Storsjö2013-08-061-1/+1
| | | | | | | | | | | | | | | | | | This lowers the level of warnings printed if trying to connect to a host name that provides both v6 and v4 addresses but the service only is available on the v4 address (often occurring for 'localhost', with servers that aren't v6-aware). Signed-off-by: Martin Storsjö <[email protected]>
* | Merge commit '2a0ec47bd70ebb79e8b2d2f956feeb3a813df798'Michael Niedermayer2013-08-061-1/+1
|\| | | | | | | | | | | | | * commit '2a0ec47bd70ebb79e8b2d2f956feeb3a813df798': unix: Convert from AVERROR to errno range before comparing error codes Merged-by: Michael Niedermayer <[email protected]>
| * unix: Convert from AVERROR to errno range before comparing error codesMartin Storsjö2013-08-061-1/+1
| | | | | | | | Signed-off-by: Martin Storsjö <[email protected]>
* | Merge commit 'bb9378251a167ef0116f263912e57f715c1e02ac'Michael Niedermayer2013-08-061-1/+1
|\| | | | | | | | | | | | | * commit 'bb9378251a167ef0116f263912e57f715c1e02ac': network: Use SOCK_CLOEXEC when available Merged-by: Michael Niedermayer <[email protected]>
| * network: Use SOCK_CLOEXEC when availableLuca Barbato2013-08-051-1/+1
| |
* | Merge commit '605387582bd35920b83a26dabbe1c0601f425621'Michael Niedermayer2013-08-061-4/+4
|/ | | | | | | | | | * commit '605387582bd35920b83a26dabbe1c0601f425621': lavf: Support unix sockets Conflicts: configure Merged-by: Michael Niedermayer <[email protected]>
* lavf: Support unix socketsLuca Barbato2013-08-051-0/+156