Merge remote branch 'origin/bug_383_softwaremanager'
authorghost <andreas.monzner@multimedia-labs.de>
Wed, 27 Jan 2010 09:50:25 +0000 (10:50 +0100)
committerghost <andreas.monzner@multimedia-labs.de>
Wed, 27 Jan 2010 09:50:25 +0000 (10:50 +0100)
lib/python/Plugins/SystemPlugins/Videomode/HDMI.png [new file with mode: 0644]
lib/python/Plugins/SystemPlugins/Videomode/Makefile.am
lib/python/Plugins/SystemPlugins/Videomode/VideoWizard.py
lib/python/Plugins/SystemPlugins/Videomode/lcd_HDMI.png [new file with mode: 0644]
lib/python/Screens/InfoBarGenerics.py
lib/service/servicedvb.cpp

diff --git a/lib/python/Plugins/SystemPlugins/Videomode/HDMI.png b/lib/python/Plugins/SystemPlugins/Videomode/HDMI.png
new file mode 100644 (file)
index 0000000..5aa8304
Binary files /dev/null and b/lib/python/Plugins/SystemPlugins/Videomode/HDMI.png differ
index 2ec0b335a9630ad34ebaa33f4691dfa400fe7591..1ac1d5dd3f846f7f4e1aba9944ee144a1f217f45 100644 (file)
@@ -16,4 +16,6 @@ dist_install_DATA = \
        LICENSE \
        Scart.png \
        videowizard.xml \
-       YPbPr.png
+       YPbPr.png \
+       HDMI.png \
+       lcd_HDMI.png
index 512bcec3e73c5fffd34df32e9efbd1d958930f03..15f4d5163681765af65e9005e86e78957da1f647 100644 (file)
@@ -99,7 +99,10 @@ class VideoWizard(WizardLanguage, Rc):
                print "input selection moved:", self.selection
                self.inputSelect(self.selection)
                if self["portpic"].instance is not None:
-                       self["portpic"].instance.setPixmapFromFile(resolveFilename(SCOPE_PLUGINS, "SystemPlugins/Videomode/" + self.selection + ".png"))
+                       picname = self.selection
+                       if picname == "DVI" and HardwareInfo().get_device_name() == "dm500hd":
+                               picname = "HDMI"
+                       self["portpic"].instance.setPixmapFromFile(resolveFilename(SCOPE_PLUGINS, "SystemPlugins/Videomode/" + picname + ".png"))
                
        def inputSelect(self, port):
                print "inputSelect:", port
diff --git a/lib/python/Plugins/SystemPlugins/Videomode/lcd_HDMI.png b/lib/python/Plugins/SystemPlugins/Videomode/lcd_HDMI.png
new file mode 100644 (file)
index 0000000..425da5c
Binary files /dev/null and b/lib/python/Plugins/SystemPlugins/Videomode/lcd_HDMI.png differ
index 7ae0b1232747821b0a8be828b6f85a6fdcd415fb..ca9ba550e834d500a9a728e9a10282abdfb0a89b 100644 (file)
@@ -2014,8 +2014,10 @@ class InfoBarCueSheetSupport:
 
                        if last is not None:
                                self.resume_point = last
+                               
+                               l = last / 90000
                                if config.usage.on_movie_start.value == "ask":
-                                       Notifications.AddNotificationWithCallback(self.playLastCB, MessageBox, _("Do you want to resume this playback?"), timeout=10)
+                                       Notifications.AddNotificationWithCallback(self.playLastCB, MessageBox, _("Do you want to resume this playback?") + "\n" + (_("Resume position at %s") % ("%d:%02d:%02d" % (l/3600, l%3600/60, l%60))), timeout=10)
                                elif config.usage.on_movie_start.value == "resume":
 # TRANSLATORS: The string "Resuming playback" flashes for a moment
 # TRANSLATORS: at the start of a movie, when the user has selected
index 615329c9b5d1cf064a08b5f95a246ad6d78c5335..1a3cb0e00f01e799860e7738e936935c04919464 100644 (file)
@@ -1128,11 +1128,7 @@ RESULT eDVBServicePlay::stop()
                        
                        if (length)
                        {
-                               int perc = play_position * 100LL / length;
-                       
-                                       /* only store last play position when between 1% and 99% */
-                               if ((1 < perc) && (perc < 99))
-                                       m_cue_entries.insert(cueEntry(play_position, 3)); /* last play position */
+                               m_cue_entries.insert(cueEntry(play_position, 3)); /* last play position */
                        }
                        m_cuesheet_changed = 1;
                }