move volume fix into gstreamer provider, since its only provider specific

This commit is contained in:
Thomas Hansen 2011-03-08 05:15:41 -06:00
parent ce678ef2ce
commit 8b9aeab4f8
2 changed files with 2 additions and 2 deletions

View File

@ -252,7 +252,7 @@ class VideoGStreamer(VideoBase):
def _set_volume(self, volume):
if self._audiosink is not None:
self._volumesink.set_property('volume', volume)
self._volume = volume
self._volume = max(volume, .0000001)
def _update(self, dt):
if self._do_load:

View File

@ -123,4 +123,4 @@ class Video(Image):
def on_volume(self, instance, value):
if self._video:
self._video.volume = max(value, .0000001)
self._video.volume = value