Convert set_state to internal method
This commit is contained in:
parent
882ba520d8
commit
42547563ea
@ -184,18 +184,18 @@ class GStreamer(ThreadingActor):
|
||||
return handeled
|
||||
|
||||
def start_playback(self):
|
||||
return self.set_state(gst.STATE_PLAYING)
|
||||
return self._set_state(gst.STATE_PLAYING)
|
||||
|
||||
def pause_playback(self):
|
||||
return self.set_state(gst.STATE_PAUSE)
|
||||
return self._set_state(gst.STATE_PAUSE)
|
||||
|
||||
def prepare_playback(self):
|
||||
return self.set_state(gst.STATE_READY)
|
||||
return self._set_state(gst.STATE_READY)
|
||||
|
||||
def stop_playback(self):
|
||||
return self.set_state(gst.STATE_NULL)
|
||||
return self._set_state(gst.STATE_NULL)
|
||||
|
||||
def set_state(self, state):
|
||||
def _set_state(self, state):
|
||||
"""
|
||||
Set the GStreamer state. Returns :class:`True` if successful.
|
||||
|
||||
|
||||
@ -56,7 +56,7 @@ class GStreamerTest(unittest.TestCase):
|
||||
self.assertEqual(100, self.gstreamer.get_volume())
|
||||
|
||||
@SkipTest
|
||||
def test_set_state(self):
|
||||
def test_set_state_encapsulation(self):
|
||||
pass # TODO
|
||||
|
||||
@SkipTest
|
||||
|
||||
Loading…
Reference in New Issue
Block a user