summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authoralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-05-30 18:30:24 +0000
committeralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-05-30 18:30:24 +0000
commit52d8c4c8fcf0f2cd0734cb53bd4fad70c28fe3a7 (patch)
tree5fc50d916d95c283b7fc359e1b1341812cb1d7c7 /mplayer.c
parent019bae008cce2457ddb43a5fbc914e8a9214a2b3 (diff)
downloadmpv-52d8c4c8fcf0f2cd0734cb53bd4fad70c28fe3a7.tar.bz2
mpv-52d8c4c8fcf0f2cd0734cb53bd4fad70c28fe3a7.tar.xz
changed the silly func-inside-func codepice
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10217 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/mplayer.c b/mplayer.c
index ee1e53e778..f1add9cdf4 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -3388,9 +3388,11 @@ if (stop_xscreensaver && sh_video) {
// DVD sub:
if(vo_config_count && vo_spudec) {
unsigned char* packet=NULL;
- int len,timestamp;
+ int len=1,timestamp;
+ current_module="spudec";
+ spudec_heartbeat(vo_spudec,90000*sh_video->timer);
// Get a sub packet from the dvd or a vobsub and make a timestamp relative to sh_video->timer
- int get_sub_packet(void) {
+ while(len>0 && packet){
// Vobsub
len = 0;
if(vo_vobsub) {
@@ -3410,11 +3412,6 @@ if(vo_config_count && vo_spudec) {
mp_dbg(MSGT_CPLAYER,MSGL_V,"\rDVD sub: len=%d v_pts=%5.3f s_pts=%5.3f ts=%d \n",len,sh_video->pts,d_dvdsub->pts,timestamp);
}
}
- return len;
- }
- current_module="spudec";
- spudec_heartbeat(vo_spudec,90000*sh_video->timer);
- while(get_sub_packet()>0 && packet){
if(timestamp < 0) timestamp = 0;
spudec_assemble(vo_spudec,packet,len,timestamp);
}