Skip to content

Commit cce89ad

Browse files
committed
utils/video_frame_pool: Use rethrow expression
Throwing the exception by name can cause unnecessary copying
1 parent 00decb9 commit cce89ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/video_frame_pool.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ std::shared_ptr<video_frame> video_frame_pool::impl::get_frame() {
185185
} catch (std::exception &e) {
186186
std::cerr << e.what() << std::endl;
187187
deallocate_frame(ret);
188-
throw e;
188+
throw;
189189
}
190190
}
191191
m_unreturned_frames += 1;

0 commit comments

Comments
 (0)