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

Function hb_bd_start

libhb/bd.c:803–820  ·  view source on GitHub ↗

* hb_bd_start *********************************************************************** * Title and chapter start at 1 **********************************************************************/

Source from the content-addressed store, hash-verified

801 * Title and chapter start at 1
802 **********************************************************************/
803int hb_bd_start( hb_bd_t * d, hb_title_t *title )
804{
805 BD_EVENT event;
806
807 d->duration = title->duration;
808
809 // Calling bd_get_event initializes libbluray event queue.
810 bd_select_title( d->bd, d->title_info[title->index - 1]->idx );
811 bd_get_event( d->bd, &event );
812 d->chapter = 0;
813 d->next_chap = 1;
814 d->stream = hb_bd_stream_open( d->h, title );
815 if ( d->stream == NULL )
816 {
817 return 0;
818 }
819 return 1;
820}
821
822/***********************************************************************
823 * hb_bd_stop

Callers 2

hb_reader_openFunction · 0.85
DecodePreviewsFunction · 0.85

Calls 1

hb_bd_stream_openFunction · 0.85

Tested by

no test coverage detected