summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2022-02-17 22:37:31 +0100
committerBastien Nocera <hadess@hadess.net>2022-02-17 22:42:23 +0100
commit14e577920e0f566a9701329c5ba05f2356033645 (patch)
tree76f6adcc687618ab2f3ffef02c86d975dadda0c8 /src
parent053ab88a0f4a70535a901026567870bd605ec3bb (diff)
downloadtotem-14e577920e0f566a9701329c5ba05f2356033645.tar.gz
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
Diffstat (limited to 'src')
-rw-r--r--src/totem-object.c3
1 files changed, 3 insertions, 0 deletions
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: