mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
lavf/segment: add some debugging logs
This commit is contained in:
parent
567eb9d344
commit
0692d4c890
@ -81,6 +81,8 @@ static int segment_start(AVFormatContext *s)
|
|||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
fail:
|
fail:
|
||||||
|
av_log(oc, AV_LOG_ERROR, "Failure occurred when starting segment '%s'\n",
|
||||||
|
oc->filename);
|
||||||
avio_close(oc->pb);
|
avio_close(oc->pb);
|
||||||
av_freep(&oc->priv_data);
|
av_freep(&oc->priv_data);
|
||||||
|
|
||||||
@ -94,6 +96,10 @@ static int segment_end(AVFormatContext *oc)
|
|||||||
if (oc->oformat->write_trailer)
|
if (oc->oformat->write_trailer)
|
||||||
ret = oc->oformat->write_trailer(oc);
|
ret = oc->oformat->write_trailer(oc);
|
||||||
|
|
||||||
|
if (ret < 0)
|
||||||
|
av_log(oc, AV_LOG_ERROR, "Failure occurred when ending segment '%s'\n",
|
||||||
|
oc->filename);
|
||||||
|
|
||||||
avio_close(oc->pb);
|
avio_close(oc->pb);
|
||||||
if (oc->oformat->priv_class)
|
if (oc->oformat->priv_class)
|
||||||
av_opt_free(oc->priv_data);
|
av_opt_free(oc->priv_data);
|
||||||
|
Loading…
Reference in New Issue
Block a user