[libbluray-devel] No need for return value in _seek_internal()

hpi1 git at videolan.org
Fri Sep 14 09:35:33 CEST 2012


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Thu Sep 13 14:10:28 2012 +0300| [67eefce3887e106e2ae81f6d08e4512b1c56a373] | committer: hpi1

No need for return value in _seek_internal()

> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=67eefce3887e106e2ae81f6d08e4512b1c56a373
---

 src/libbluray/bluray.c |    8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/src/libbluray/bluray.c b/src/libbluray/bluray.c
index c3e8310..4236eb3 100644
--- a/src/libbluray/bluray.c
+++ b/src/libbluray/bluray.c
@@ -1132,8 +1132,8 @@ void bd_close(BLURAY *bd)
  * seeking and current position
  */
 
-static int64_t _seek_internal(BLURAY *bd,
-                              NAV_CLIP *clip, uint32_t title_pkt, uint32_t clip_pkt)
+static void _seek_internal(BLURAY *bd,
+                           NAV_CLIP *clip, uint32_t title_pkt, uint32_t clip_pkt)
 {
     if (_seek_stream(bd, &bd->st0, clip, clip_pkt) >= 0) {
 
@@ -1150,8 +1150,6 @@ static int64_t _seek_internal(BLURAY *bd,
             bd->bdplus_seek(bd->bdplus, bd->st0.clip_block_pos);
         }
     }
-
-    return bd->s_pos;
 }
 
 /* _change_angle() should be used only before call to _seek_internal() ! */
@@ -1384,7 +1382,7 @@ static int64_t _clip_seek_time(BLURAY *bd, uint64_t tick)
         // Find the closest access unit to the requested position
         nav_clip_time_search(bd->st0.clip, tick, &clip_pkt, &out_pkt);
 
-        return _seek_internal(bd, bd->st0.clip, out_pkt, clip_pkt);
+        _seek_internal(bd, bd->st0.clip, out_pkt, clip_pkt);
     }
 
     return bd->s_pos;



More information about the libbluray-devel mailing list