MCPcopy Create free account
hub / github.com/HandBrake/HandBrake / hb_stream_close

Function hb_stream_close

libhb/stream.c:1028–1054  ·  view source on GitHub ↗

* hb_stream_close *********************************************************************** * Closes and frees everything **********************************************************************/

Source from the content-addressed store, hash-verified

1026 * Closes and frees everything
1027 **********************************************************************/
1028void hb_stream_close( hb_stream_t ** _d )
1029{
1030 hb_stream_t *stream = * _d;
1031
1032 if (stream == NULL)
1033 {
1034 return;
1035 }
1036
1037 if ( stream->hb_stream_type == ffmpeg )
1038 {
1039 ffmpeg_close( stream );
1040 hb_stream_delete( stream );
1041 *_d = NULL;
1042 return;
1043 }
1044
1045 if ( stream->frames )
1046 {
1047 hb_log( "stream: %d good frames, %d errors (%.0f%%)", stream->frames,
1048 stream->errors, (double)stream->errors * 100. /
1049 (double)stream->frames );
1050 }
1051
1052 hb_stream_delete( stream );
1053 *_d = NULL;
1054}
1055
1056/***********************************************************************
1057 * hb_ps_stream_title_scan

Callers 7

hb_batch_title_scanFunction · 0.85
reader_closeFunction · 0.85
ScanFuncFunction · 0.85
DecodePreviewsFunction · 0.85
hb_bd_stopFunction · 0.85
hb_bd_closeFunction · 0.85

Calls 3

ffmpeg_closeFunction · 0.85
hb_stream_deleteFunction · 0.85
hb_logFunction · 0.85

Tested by

no test coverage detected