Skip to content

Commit ca84e85

Browse files
committed
remove support for gstplayer/glib iteration, not used at all.
1 parent fdf38b2 commit ca84e85

File tree

3 files changed

+1
-26
lines changed

3 files changed

+1
-26
lines changed

kivy/core/audio/audio_gstplayer.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
from kivy.core.audio import Sound, SoundLoader
1414
from kivy.logger import Logger
1515
from kivy.compat import PY2
16-
from kivy.support import install_glib_iteration
1716
from kivy.clock import Clock
1817
from os.path import realpath
1918

@@ -25,8 +24,6 @@
2524
Logger.info('AudioGstplayer: Using Gstreamer {}'.format(
2625
'.'.join(map(str, get_gst_version()))))
2726

28-
install_glib_iteration()
29-
3027

3128
def _on_gstplayer_message(mtype, message):
3229
if mtype == 'error':

kivy/core/video/video_gstplayer.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
else:
2626
from urllib.request import pathname2url
2727

28-
2928
Logger.info('VideoGstplayer: Using Gstreamer {}'.format(
3029
'.'.join(map(str, get_gst_version()))))
3130

kivy/support.py

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
'''
88

99
__all__ = ('install_gobject_iteration', 'install_twisted_reactor',
10-
'install_glib_iteration', 'install_android')
10+
'install_android')
1111

1212

1313
def install_gobject_iteration():
@@ -43,27 +43,6 @@ def _gobject_iteration(*largs):
4343
Clock.schedule_interval(_gobject_iteration, 0)
4444

4545

46-
def install_glib_iteration():
47-
'''Import and install glib context iteration inside our event loop.
48-
Use it if you want to poll gstplayer, or anything related to glib-2.0.
49-
50-
.. versionadded:: 1.8.0
51-
'''
52-
from kivy.lib import gstplayer
53-
from kivy.clock import Clock
54-
55-
if hasattr(gstplayer, '_glib_already_installed'):
56-
# already installed, don't do it twice.
57-
return
58-
59-
gstplayer._glib_already_installed = True
60-
61-
def _glib_iteration(*largs):
62-
gstplayer.glib_iteration(10)
63-
64-
Clock.schedule_interval(_glib_iteration, 0)
65-
66-
6746
# -----------------------------------------------------------------------------
6847
# Android support
6948
# -----------------------------------------------------------------------------

0 commit comments

Comments
 (0)