Skip to content

Commit

Permalink
changed the module Queue style #1
Browse files Browse the repository at this point in the history
  • Loading branch information
Srishti-j18 committed Jul 18, 2023
1 parent c5d3428 commit 77c190c
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions dist/client/dash_buffer.py
@@ -1,5 +1,13 @@
from __future__ import division
import Queue
import sys

if sys.version_info[0] < 3:
# Python 2
import Queue as queue_module
else:
# Python 3
import queue as queue_module

import threading
import time
import csv
Expand Down Expand Up @@ -43,7 +51,7 @@ def __init__(self, video_length, segment_duration):
self.beta = config_dash.BETA_BUFFER_COUNT
self.segment_limit = None
# Current video buffer that holds the segment data
self.buffer = Queue.Queue()
self.buffer = queue_module.Queue()
self.buffer_lock = threading.Lock()
self.current_segment = None
self.buffer_log_file = config_dash.BUFFER_LOG_FILENAME
Expand Down

0 comments on commit 77c190c

Please sign in to comment.