From 7c68e9ee3f4faa5203cb35be04d58db68e3c82db Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Sat, 11 Jan 2003 15:31:45 +0000 Subject: fast discarding when stopped CVS patchset: 3873 CVS date: 2003/01/11 15:31:45 --- src/libsputext/xine_decoder.c | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'src') diff --git a/src/libsputext/xine_decoder.c b/src/libsputext/xine_decoder.c index 311f7e3dc..b1b368941 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.46 2003/01/11 12:52:03 miguelfreitas Exp $ + * $Id: xine_decoder.c,v 1.47 2003/01/11 15:31:45 miguelfreitas Exp $ * */ @@ -278,21 +278,23 @@ static void spudec_decode_data (spu_decoder_t *this_gen, buf_element_t *buf) { } } } - - xine_usec_sleep (50000); if( this->stream->master_stream ) - xine_get_current_info (this->stream->master_stream, &extra_info, sizeof(extra_info) ); + status = xine_get_status (this->stream->master_stream); else - xine_get_current_info (this->stream, &extra_info, sizeof(extra_info) ); + status = xine_get_status (this->stream); + + if( status == XINE_STATUS_QUIT || status == XINE_STATUS_STOP ) + return; + xine_usec_sleep (50000); + if( this->stream->master_stream ) - status = xine_get_status (this->stream->master_stream); + xine_get_current_info (this->stream->master_stream, &extra_info, sizeof(extra_info) ); else - status = xine_get_status (this->stream); - - } while(seek_count == extra_info.seek_count && status != XINE_STATUS_QUIT && - status != XINE_STATUS_STOP); + xine_get_current_info (this->stream, &extra_info, sizeof(extra_info) ); + + } while(seek_count == extra_info.seek_count); } -- cgit v1.2.3