diff --git a/VideoController.py b/VideoController.py index 10ec418..e9bf0ce 100644 --- a/VideoController.py +++ b/VideoController.py @@ -86,12 +86,13 @@ class VideoController: if t == gst.MESSAGE_ELEMENT: #This occurs when an invalid codec is attempted to be played #Need to insert some form of message to the user here - #print "Element: " + message.structure.to_string() + if self.player.glossMgr.debug: print "GStreamer Bus msg: " + message.structure.to_string() struc = message.structure if struc is None: return if struc.get_name() == "missing-plugin": + print "GStreamer Error (missing-plugin): " + message.structure.to_string() self.isPlaying = False self.video_texture.set_playing(False) self.player.stop_video() diff --git a/modules/myth_tv_player/MythBackendConn.py b/modules/myth_tv_player/MythBackendConn.py index 846798e..e74e69b 100644 --- a/modules/myth_tv_player/MythBackendConn.py +++ b/modules/myth_tv_player/MythBackendConn.py @@ -209,11 +209,11 @@ class MythBackendConnection(threading.Thread): #This tries to optimise the request size if (num_bytes == request_size) and (request_size < max_request_size): - request_size = request_size + request_size_step + request_size += request_size_step if request_size > max_request_size: request_size = max_request_size elif (request_size > request_size_step) and (num_bytes != request_size): - request_size = request_size - request_size_step + request_size -= request_size_step print "Ending playback"