changeset 20841:77a0fe6d0f89

removed duplicated check in demuxer_seek_chapter
author nicodvb
date Sat, 11 Nov 2006 13:57:09 +0000
parents 70b6f88bd23c
children c15751f13cf9
files libmpdemux/demuxer.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demuxer.c	Sat Nov 11 13:02:39 2006 +0000
+++ b/libmpdemux/demuxer.c	Sat Nov 11 13:57:09 2006 +0000
@@ -1096,7 +1096,7 @@
     if (!demuxer->num_chapters || !demuxer->chapters) {
         if(!mode) {
             ris = stream_control(demuxer->stream, STREAM_CTRL_GET_CURRENT_CHAPTER, &current);
-            if(ris == STREAM_UNSUPORTED && !mode) return -1;
+            if(ris == STREAM_UNSUPORTED) return -1;
             chapter += current;
         }