qt6 fixes
Some checks failed
CI / Python ${{ matrix.python-version }} (3.10) (push) Has been cancelled
CI / Python ${{ matrix.python-version }} (3.7) (push) Has been cancelled
CI / Python ${{ matrix.python-version }} (3.8) (push) Has been cancelled
CI / Python ${{ matrix.python-version }} (3.9) (push) Has been cancelled
Some checks failed
CI / Python ${{ matrix.python-version }} (3.10) (push) Has been cancelled
CI / Python ${{ matrix.python-version }} (3.7) (push) Has been cancelled
CI / Python ${{ matrix.python-version }} (3.8) (push) Has been cancelled
CI / Python ${{ matrix.python-version }} (3.9) (push) Has been cancelled
This commit is contained in:
@@ -320,7 +320,7 @@ class AV(common.tox_save.ToxAvSave):
|
||||
name='_video_thread')
|
||||
self._video_thread.start()
|
||||
|
||||
def stop_video_thread(self):
|
||||
def stop_video_thread(self) -> None:
|
||||
if self._video_thread is None:
|
||||
return
|
||||
|
||||
@@ -341,7 +341,7 @@ class AV(common.tox_save.ToxAvSave):
|
||||
|
||||
# Incoming chunks
|
||||
|
||||
def audio_chunk(self, samples, channels_count, rate):
|
||||
def audio_chunk(self, samples, channels_count, rate) -> None:
|
||||
"""
|
||||
Incoming chunk
|
||||
"""
|
||||
@@ -377,7 +377,7 @@ class AV(common.tox_save.ToxAvSave):
|
||||
|
||||
# AV sending
|
||||
|
||||
def send_audio_data(self, data, count, *largs, **kwargs):
|
||||
def send_audio_data(self, data, count, *largs, **kwargs) -> None:
|
||||
pcm = data
|
||||
# :param sampling_rate: Audio sampling rate used in this frame.
|
||||
if self._toxav is None:
|
||||
@@ -404,7 +404,7 @@ class AV(common.tox_save.ToxAvSave):
|
||||
# util_ui.tr("Error send_audio audio_send_frame"))
|
||||
pass
|
||||
|
||||
def send_audio(self):
|
||||
def send_audio(self) -> None:
|
||||
"""
|
||||
This method sends audio to friends
|
||||
"""
|
||||
@@ -425,7 +425,7 @@ class AV(common.tox_save.ToxAvSave):
|
||||
i += 1
|
||||
sleep(0.01)
|
||||
|
||||
def send_video(self):
|
||||
def send_video(self) -> None:
|
||||
"""
|
||||
This method sends video to friends
|
||||
"""
|
||||
@@ -466,7 +466,7 @@ class AV(common.tox_save.ToxAvSave):
|
||||
|
||||
sleep( 1.0/iFPS)
|
||||
|
||||
def convert_bgr_to_yuv(self, frame):
|
||||
def convert_bgr_to_yuv(self, frame) -> tuple:
|
||||
"""
|
||||
:param frame: input bgr frame
|
||||
:return y, u, v: y, u, v values of frame
|
||||
|
||||
Reference in New Issue
Block a user