[FFmpeg-devel] [PATCH] update to add preclose function, help to fix rtsp didn't send teardown after ffplay close stream
Hendrik Leppkes
h.leppkes at gmail.com
Fri Mar 3 09:53:31 EET 2017
On Thu, Mar 2, 2017 at 2:42 AM, Vincent Luo <vincent860602 at gmail.com> wrote:
> From: Vincent Luo <vincent860602 at gmail.com>
>
> ---
> ffplay.c | 1 +
> libavformat/avformat.h | 11 ++++++++++-
> libavformat/rtspdec.c | 9 +++++++++
> libavformat/utils.c | 12 ++++++++++++
> 4 files changed, 32 insertions(+), 1 deletion(-)
>
> diff --git a/ffplay.c b/ffplay.c
> index 79dc768..42e538b 100644
> --- a/ffplay.c
> +++ b/ffplay.c
> @@ -1178,6 +1178,7 @@ static void stream_component_close(VideoState *is, int stream_index)
>
> static void stream_close(VideoState *is)
> {
> + avformat_preclose_input(&is->ic); //added by vincent 20170228 for send teardown before close(Fix a rtsp issue)
Why would close not send a teardown, and even if it doesn't, why can't
this be fixed without adding some new API?
- Hendrik
More information about the ffmpeg-devel
mailing list