Mercurial > libdvdnav.hg
comparison dvdnav.c @ 115:b527b7cbfb19 src
fix seek detection
author | mroi |
---|---|
date | Mon, 24 Feb 2003 18:19:27 +0000 |
parents | b6834e6359cf |
children | 4d711d0518e9 |
comparison
equal
deleted
inserted
replaced
114:b6834e6359cf | 115:b527b7cbfb19 |
---|---|
410 if(this->position_current.hop_channel != this->position_next.hop_channel) { | 410 if(this->position_current.hop_channel != this->position_next.hop_channel) { |
411 (*event) = DVDNAV_HOP_CHANNEL; | 411 (*event) = DVDNAV_HOP_CHANNEL; |
412 #ifdef LOG_DEBUG | 412 #ifdef LOG_DEBUG |
413 fprintf(MSG_OUT, "libdvdnav: HOP_CHANNEL\n"); | 413 fprintf(MSG_OUT, "libdvdnav: HOP_CHANNEL\n"); |
414 #endif | 414 #endif |
415 if (this->position_next.hop_channel > HOP_SEEK) { | 415 if (this->position_next.hop_channel - this->position_current.hop_channel >= HOP_SEEK) { |
416 int num_angles = 0, current; | 416 int num_angles = 0, current; |
417 | 417 |
418 /* we seeked -> check for multiple angles */ | 418 /* we seeked -> check for multiple angles */ |
419 vm_get_angle_info(this->vm, ¤t, &num_angles); | 419 vm_get_angle_info(this->vm, ¤t, &num_angles); |
420 if (num_angles > 1) { | 420 if (num_angles > 1) { |
955 return this->position_next.still; | 955 return this->position_next.still; |
956 } | 956 } |
957 | 957 |
958 /* | 958 /* |
959 * $Log$ | 959 * $Log$ |
960 * Revision 1.41 2003/02/24 18:19:27 mroi | |
961 * fix seek detection | |
962 * | |
960 * Revision 1.40 2003/02/20 15:32:15 mroi | 963 * Revision 1.40 2003/02/20 15:32:15 mroi |
961 * big libdvdnav cleanup, quoting the ChangeLog: | 964 * big libdvdnav cleanup, quoting the ChangeLog: |
962 * * some bugfixes | 965 * * some bugfixes |
963 * * code cleanup | 966 * * code cleanup |
964 * * build process polishing | 967 * * build process polishing |