From 3d5f795eba816f4ef9e487cefe6e12f1b5c589c4 Mon Sep 17 00:00:00 2001 From: kos Date: Wed, 3 Jul 2013 19:39:12 +0900 Subject: [PATCH] remove the uri log when playing the vod. --- Navigation.py | 3 ++- lib/python/Plugins/Extensions/HbbTV/plugin.py | 9 +++++---- lib/service/servicemp3.cpp | 6 ++++-- 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/Navigation.py b/Navigation.py index a905da1..1043f80 100644 --- a/Navigation.py +++ b/Navigation.py @@ -55,7 +55,8 @@ class Navigation: if ref and oldref and ref == oldref and not forceRestart: print "ignore request to play already running service(1)" return 0 - print "playing", ref and ref.toString() + #print "playing", ref and ref.toString() + print "playing service.." if ref is None: self.stopService() return 0 diff --git a/lib/python/Plugins/Extensions/HbbTV/plugin.py b/lib/python/Plugins/Extensions/HbbTV/plugin.py index ddeb2cb..6d51dde 100644 --- a/lib/python/Plugins/Extensions/HbbTV/plugin.py +++ b/lib/python/Plugins/Extensions/HbbTV/plugin.py @@ -190,8 +190,8 @@ class MMSStreamURL: sock = socket.socket(socket.AF_INET,socket.SOCK_STREAM) sock.connect((host, port)) sock.send(self.sendmsg%(location, host)) - print "Request." - print self.sendmsg%(location, host) + #print "Request." + #print self.sendmsg%(location, host) fullydata = '' while 1: res = sock.recv(1024) @@ -780,7 +780,8 @@ class HandlerHbbTV(Handler): for ii in range(5): self._vod_service = None try: - print "Try to open vod [%d] : %s" % (ii, url) + #print "Try to open vod [%d] : %s" % (ii, url) + print "Try to open vod" self._vod_service = eServiceReference(4097, 0, url) self._session.nav.playService(self._vod_service) if self._vod_service is not None: @@ -942,7 +943,7 @@ class HbbTVWindow(Screen, InfoBarNotifications): def _serviceForbiden(self): global __gval__ real_url = MMSStreamURL().getLocationData(__gval__.hbbtv_handelr.getUrl()) - print "Received URI :\n", real_url + #print "Received URI :\n", real_url if real_url is not None: __gval__.hbbtv_handelr.doRetryOpen(real_url.strip()) diff --git a/lib/service/servicemp3.cpp b/lib/service/servicemp3.cpp index 69e6262..bb75a06 100755 --- a/lib/service/servicemp3.cpp +++ b/lib/service/servicemp3.cpp @@ -330,7 +330,8 @@ eServiceMP3::eServiceMP3(eServiceReference ref) uri = g_filename_to_uri(filename, NULL, NULL); - eDebug("eServiceMP3::playbin2 uri=%s", uri); + //eDebug("eServiceMP3::playbin2 uri=%s", uri); + eDebug("eServiceMP3::playbin2"); m_gst_playbin = gst_element_factory_make("playbin2", "playbin"); if (!m_gst_playbin) @@ -453,7 +454,8 @@ RESULT eServiceMP3::stop() //GST_DEBUG_BIN_TO_DOT_FILE(GST_BIN(m_gst_playbin),GST_DEBUG_GRAPH_SHOW_ALL,"e2-playbin"); - eDebug("eServiceMP3::stop %s", m_ref.path.c_str()); + //eDebug("eServiceMP3::stop %s", m_ref.path.c_str()); + eDebug("eServiceMP3::stop service.."); gst_element_set_state(m_gst_playbin, GST_STATE_NULL); m_state = stStopped; -- 2.7.4