[totem] main: Fix seeking back from the last chapter of a DVD
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] main: Fix seeking back from the last chapter of a DVD
- Date: Fri, 15 Mar 2013 15:36:26 +0000 (UTC)
commit 4eb42ec44d28525e775eb32cc26f57b30b6f120a
Author: Bastien Nocera <hadess hadess net>
Date: Fri Mar 15 15:40:00 2013 +0100
main: Fix seeking back from the last chapter of a DVD
We were calling "has_next_track" even in the cases where we
wanted to check from the existence of the previous track.
src/totem-object.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/totem-object.c b/src/totem-object.c
index 5df6d25..51e33c6 100644
--- a/src/totem-object.c
+++ b/src/totem-object.c
@@ -1737,15 +1737,17 @@ totem_time_within_seconds (TotemObject *totem)
return (_time < REWIND_OR_PREVIOUS);
}
+#define totem_has_direction_track(totem, dir) (dir == TOTEM_PLAYLIST_DIRECTION_NEXT ?
bacon_video_widget_has_next_track (totem->bvw) : bacon_video_widget_has_previous_track (totem->bvw))
+
static void
totem_action_direction (TotemObject *totem, TotemPlaylistDirection dir)
{
- if (bacon_video_widget_has_next_track (totem->bvw) == FALSE &&
+ if (totem_has_direction_track (totem, dir) == FALSE &&
totem_playlist_has_direction (totem->playlist, dir) == FALSE &&
totem_playlist_get_repeat (totem->playlist) == FALSE)
return;
- if (bacon_video_widget_has_next_track (totem->bvw) != FALSE) {
+ if (totem_has_direction_track (totem, dir) != FALSE) {
BvwDVDEvent event;
event = (dir == TOTEM_PLAYLIST_DIRECTION_NEXT ? BVW_DVD_NEXT_CHAPTER : BVW_DVD_PREV_CHAPTER);
bacon_video_widget_dvd_event (totem->bvw, event);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]