From 551cd1d569dcd10d574bf28761137fb14c199b09 Mon Sep 17 00:00:00 2001 From: Derk-Jan Hartman Date: Thu, 7 Sep 2006 22:01:06 +0000 Subject: [PATCH] * Reset access->info.b_eof when we search. After you have read up untill the end, (like ps does), you can search back to the beginning, provided the access module allows this. --- modules/access/cdda/access.c | 1 + modules/access/vcd/vcd.c | 3 +++ modules/access/vcdx/access.c | 1 + 3 files changed, 5 insertions(+) diff --git a/modules/access/cdda/access.c b/modules/access/cdda/access.c index 3fa81698f3..4a8fddece3 100644 --- a/modules/access/cdda/access.c +++ b/modules/access/cdda/access.c @@ -512,6 +512,7 @@ static int CDDASeek( access_t * p_access, int64_t i_pos ) } p_access->info.i_pos = i_pos; + p_access->info.b_eof = VLC_FALSE; return VLC_SUCCESS; } diff --git a/modules/access/vcd/vcd.c b/modules/access/vcd/vcd.c index 875b4d5c56..71299959af 100644 --- a/modules/access/vcd/vcd.c +++ b/modules/access/vcd/vcd.c @@ -434,6 +434,9 @@ static int Seek( access_t *p_access, int64_t i_pos ) p_access->info.i_seekpoint = i_seekpoint; } + /* Reset eof */ + p_access->info.b_eof = VLC_FALSE; + return VLC_SUCCESS; } diff --git a/modules/access/vcdx/access.c b/modules/access/vcdx/access.c index 2febf8c79f..5ae1f23907 100644 --- a/modules/access/vcdx/access.c +++ b/modules/access/vcdx/access.c @@ -314,6 +314,7 @@ VCDSeek( access_t * p_access, int64_t i_pos ) } } + p_access->info.b_eof = VLC_FALSE; return VLC_SUCCESS; } -- 2.39.2