From 14e577920e0f566a9701329c5ba05f2356033645 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Thu, 17 Feb 2022 22:37:31 +0100 Subject: 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(+) (limited to 'src') 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: -- cgit v1.2.1