From 73c3a8ab5131d11927d84fd19a566770486c00bb Mon Sep 17 00:00:00 2001 From: iovar Date: Thu, 28 Sep 2006 10:31:10 +0000 Subject: fix, in order to not hang on the encoder git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@73 f606c939-3180-4ac9-a4b8-4b8779d57d0a --- recordmydesktop/src/encode_image_buffer.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'recordmydesktop') diff --git a/recordmydesktop/src/encode_image_buffer.c b/recordmydesktop/src/encode_image_buffer.c index aaede04..d3cabab 100644 --- a/recordmydesktop/src/encode_image_buffer.c +++ b/recordmydesktop/src/encode_image_buffer.c @@ -43,6 +43,8 @@ void *EncodeImageBuffer(void *pdata){ ogg_stream_packetin(&((ProgData *)pdata)->enc_data->m_ogg_ts,&((ProgData *)pdata)->enc_data->m_ogg_pckt1); ((ProgData *)pdata)->avd+=((ProgData *)pdata)->frametime*2*((ProgData *)pdata)->args.channels; } + if(!((ProgData *)pdata)->running) + break; } if(theora_encode_YUVin(&((ProgData *)pdata)->enc_data->m_th_st,&((ProgData *)pdata)->enc_data->yuv)){ fprintf(stderr,"Encoder not ready!\n"); -- cgit v1.2.3