summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiguel Freitas <miguelfreitas@users.sourceforge.net>2003-07-12 17:04:36 +0000
committerMiguel Freitas <miguelfreitas@users.sourceforge.net>2003-07-12 17:04:36 +0000
commit8a47bfba5919516046b4f9e7d24a8bb2ab321535 (patch)
treeca4e68cacf81a52e5fb710a5d885ebc3845c5512
parentd3298ea39ec9131d05c4387c486a650366520304 (diff)
downloadxine-lib-8a47bfba5919516046b4f9e7d24a8bb2ab321535.tar.gz
xine-lib-8a47bfba5919516046b4f9e7d24a8bb2ab321535.tar.bz2
btw, reduce prebuffer so settings take effect faster
CVS patchset: 5152 CVS date: 2003/07/12 17:04:36
-rw-r--r--src/libsputext/xine_decoder.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libsputext/xine_decoder.c b/src/libsputext/xine_decoder.c
index e873c8ee3..4f3c02cc4 100644
--- a/src/libsputext/xine_decoder.c
+++ b/src/libsputext/xine_decoder.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: xine_decoder.c,v 1.60 2003/07/12 17:01:42 miguelfreitas Exp $
+ * $Id: xine_decoder.c,v 1.61 2003/07/12 17:04:36 miguelfreitas Exp $
*
*/
@@ -287,8 +287,8 @@ static void spudec_decode_data (spu_decoder_t *this_gen, buf_element_t *buf) {
diff = start - extra_info.frame_number;
- /* draw it if less than 2 seconds left */
- if( diff < 2*90000 / this->img_duration ) {
+ /* draw it if less than 1/2 second left */
+ if( diff < 90000/2 / this->img_duration ) {
start_vpts = extra_info.vpts + diff * this->img_duration;
end_vpts = start_vpts + (end-start) * this->img_duration;
@@ -316,8 +316,8 @@ static void spudec_decode_data (spu_decoder_t *this_gen, buf_element_t *buf) {
diff = start - extra_info.input_time;
- /* draw it if less than 2 seconds left */
- if( diff < 2000 ) {
+ /* draw it if less than 1/2 second left */
+ if( diff < 500 ) {
start_vpts = extra_info.vpts + diff * 90;
end_vpts = start_vpts + (end-start) * 90;