[totem/wip/hadess/precise-stepping: 2/2] main: Show milliseconds when stepping through video




commit 25e6422dbd1c719d98dd0d36151089f7bbccb028
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Feb 17 22:37:31 2022 +0100

    main: Show milliseconds when stepping through video
    
    This is useful for identifying a particular frame in a movie, either for
    processing in another application (although this isn't recommended, as
    different software will have different ideas about specific times), for
    safekeeping, or passing on to a third-party.
    
    Closes: #472

 src/totem-object.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/src/totem-object.c b/src/totem-object.c
index 74b4bcf06..ac1f821d9 100644
--- a/src/totem-object.c
+++ b/src/totem-object.c
@@ -1440,6 +1440,7 @@ play_pause_set_label (TotemObject *totem, TotemStates state)
        case STATE_PLAYING:
                id = "media-playback-pause-symbolic";
                tip = N_("Pause");
+               bacon_time_label_set_show_msecs (totem->time_label, FALSE);
                totem_playlist_set_playing (totem->playlist, TOTEM_PLAYLIST_STATUS_PLAYING);
                break;
        case STATE_PAUSED:
@@ -3486,11 +3487,13 @@ totem_object_handle_key_press (TotemObject *totem, GdkEventKey *event)
        case GDK_KEY_comma:
        case GDK_KEY_FrameBack:
                totem_object_pause (totem);
+               bacon_time_label_set_show_msecs (totem->time_label, TRUE);
                bacon_video_widget_step (totem->bvw, FALSE, NULL);
                break;
        case GDK_KEY_period:
        case GDK_KEY_FrameForward:
                totem_object_pause (totem);
+               bacon_time_label_set_show_msecs (totem->time_label, TRUE);
                bacon_video_widget_step (totem->bvw, TRUE, NULL);
                break;
        case GDK_KEY_AudioPause:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]