]> git.sesse.net Git - vlc/commitdiff
Used vout_OSDEpg for the time hotkeys.
authorLaurent Aimar <fenrir@videolan.org>
Tue, 2 Feb 2010 22:00:51 +0000 (23:00 +0100)
committerLaurent Aimar <fenrir@videolan.org>
Tue, 2 Feb 2010 22:02:46 +0000 (23:02 +0100)
Based on a patch by Adrien Maglo.

modules/control/hotkeys.c

index 3667f42305013d499679962dd9756a78a0eb7bf5..bb989bf0978b69fb558085f8e2b46b5740a07475 100644 (file)
@@ -737,9 +737,10 @@ static int PutAction( intf_thread_t *p_intf, int i_action )
                 snprintf( psz_msg, sizeof(psz_msg), _("%.2fx"), f_rate );
                 vout_OSDMessage( VLC_OBJECT(p_input), DEFAULT_CHAN, "%s", psz_msg );
             }
-            else if( i_action == ACTIONID_POSITION && b_seekable )
+            else if( i_action == ACTIONID_POSITION )
             {
-                DisplayPosition( p_intf, p_vout, p_input );
+                if( ( !p_vout || vout_OSDEpg( p_vout, input_GetItem( p_input ) ) ) && b_seekable )
+                    DisplayPosition( p_intf, p_vout, p_input );
             }
             else if( i_action >= ACTIONID_PLAY_BOOKMARK1 &&
                      i_action <= ACTIONID_PLAY_BOOKMARK10 )