Skip to content

Commit

Permalink
For #1672, fix dvr close file failed bug. 3.0.140
Browse files Browse the repository at this point in the history
  • Loading branch information
winlinvip committed Mar 30, 2020
1 parent cd1513d commit 57604a9
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
4 changes: 3 additions & 1 deletion AUTHORS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,6 @@ CONTRIBUTORS ordered by first contribution.
* xialixin<xlx0625@163.com>
* alphonsetai<tyh_123@163.com>
* Michael.Ma<wnpllr@gmail.com>
* lam2003<linmin3@yy.com>
* lam2003<linmin3@yy.com>
* l<22312935+lam2003@users.noreply.github.com>
* xfalcon<x-falcon@users.noreply.github.com>
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ For previous versions, please read:

## V3 changes

* v3.0, 2020-03-30, For [#1672][bug #1672], fix dvr close file failed bug. 3.0.140
* <strong>v3.0, 2020-03-29, [3.0 beta4(3.0.139)][r3.0b4] released. 122674 lines.</strong>
* v3.0, 2020-03-28, Support multiple OS/Platform build cache. 3.0.139
* v3.0, 2020-03-28, For [#1250][bug #1250], support macOS, OSX, MacbookPro, Apple Darwin. 3.0.138
Expand Down
1 change: 0 additions & 1 deletion trunk/scripts/new_authors.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ for author in $authors; do
echo $author| grep 'winterserver' >/dev/null 2>&1 && continue;
echo $author| grep 'wenjie.zhao' >/dev/null 2>&1 && continue;
echo $author| grep 'zhaowenjie' >/dev/null 2>&1 && continue;
echo $author| grep 'noreply' >/dev/null 2>&1 && continue;

grep $author $AFILE 1>/dev/null 2>/dev/null && continue;

Expand Down
7 changes: 3 additions & 4 deletions trunk/src/app/srs_app_dvr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -179,13 +179,12 @@ srs_error_t SrsDvrSegmenter::close()
}

// Close the encoder, then close the fs object.
if ((err = close_encoder()) != srs_success) {
fs->close();
err = close_encoder();
fs->close(); // Always close the file.
if (err != srs_success) {
return srs_error_wrap(err, "close encoder");
}

fs->close();

// when tmp flv file exists, reap it.
if ((err = fragment->rename()) != srs_success) {
return srs_error_wrap(err, "rename fragment");
Expand Down
2 changes: 1 addition & 1 deletion trunk/src/core/srs_core_version3.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@
#ifndef SRS_CORE_VERSION3_HPP
#define SRS_CORE_VERSION3_HPP

#define SRS_VERSION3_REVISION 139
#define SRS_VERSION3_REVISION 140

#endif

0 comments on commit 57604a9

Please sign in to comment.