Hi xine developers,

I've been banging my head against a brick wall for a while now and don't seem any closer in finding a solution to a problem so I'm hoping someone here can help or at least point me in the right direction.

What I'm getting is frozen video when playing from a new position after opening the stream.  (eg xine_open(s,m); xine_play(s,0,0); some_stuff(); xine_play(s,0,pos )).  I suspect it's some kind of race condition because sometimes it works and sometimes it doesn't.  I can pause the stream and restart it and it's still frozen.  The audio still works, as does SPU/OSD output although the timing for the latter seems somewhat off (sped up).

From what I can figure it's a bug somewhere in video_out.c but I don't know enough of the internals to be able to track it down.  Frames are being appended to the display buffer but there never seems to be anything available (ie get_next_frame always returns 0).  There's no deadlock as all the loops keep going and I can stop and restart the stream and sometimes the video then works.  It's independent of the video output plugin as it's occurring with xv, vdpau, xshm and DFB drivers.  My suspicion is that part of the engine is waiting for the first frame whilst another part thinks it's already been done but I'm not sure.  It might be a frame expiry problem but I'm not getting continuous discarded or skipped messages.

Unfortunately the attach for hotmail doesn't seem to work so I've appended a few lines from turning on the logging in video_out.c below.  Although the numbers vary it's essentially the same continuing output.

Help please.

Roger.

--------------------------------------------------------------

video_out: (video_out_loop:1159) loop iteration at 455657
video_out: (get_next_frame:919) no frame
video_out: (get_next_frame:942) no frame, but no backup frame
video_out: (video_out_loop:1219) next_frame_vpts is 0
video_out: (video_out_loop:1239) 1000 usec to sleep at master vpts 455659
video_out: (vo_frame_draw:463) got image oat master vpts 455849. vpts for pictur
e is 3623016 (pts was 1477219824)
video_out: (vo_frame_draw:517) delivery diff : 3167167, current vpts is 455849,
0 frames to skip
video_out: (vo_frame_draw:568) frame is ok => appending to display buffer
video_out: (vo_get_frame:384) get_frame (720 x 576)
video_out: (vo_remove_from_img_buf_queue_int:236) frame format hit (4/10)
video_out: (vo_get_frame:391) got a frame -> pthread_mutex_lock (&img->mutex)
video_out: (vo_get_frame:426) get_frame (720 x 576) done
video_out: (vo_frame_draw:463) got image oat master vpts 456381. vpts for picture is 3626619 (pts was 1477223424)
video_out: (vo_frame_draw:517) delivery diff : 3170238, current vpts is 456381,
0 frames to skip
video_out: (vo_frame_draw:568) frame is ok => appending to display buffer
video_out: (vo_get_frame:384) get_frame (720 x 576)
video_out: (vo_remove_from_img_buf_queue_int:236) frame format hit (4/10)
video_out: (vo_get_frame:391) got a frame -> pthread_mutex_lock (&img->mutex)
video_out: (vo_get_frame:426) get_frame (720 x 576) done



Click Here View photos of singles in your area