#NEWLINE# def __init__( self , nstream , track_types , rewrite_ts = False , use_info_marks = False ) : #NEWLINE# #INDENT# self . nstream = nstream #NEWLINE# self . bufs = dict ( ( ( t , deque ( ) ) for t in track_types ) ) #NEWLINE# self . rewrite = nstream #NEWLINE# self . mark = use_info_marks #NEWLINE# self . prerolling = True #NEWLINE# self . base_gp = 0 #NEWLINE# if ( len ( track_types ) == 1 ) : #NEWLINE# #INDENT# if ( chunks . MSG_VIDEO in track_types ) : #NEWLINE# #INDENT# self . mark = True #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . mark = False #NEWLINE# #UNINDENT# #UNINDENT# if self . mark : #NEWLINE# #INDENT# self . rewrite = True