diff options
author | iovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a> | 2006-09-28 10:31:10 +0000 |
---|---|---|
committer | iovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a> | 2006-09-28 10:31:10 +0000 |
commit | 73c3a8ab5131d11927d84fd19a566770486c00bb (patch) | |
tree | 197c0dbf3472ba1801d2ee8a078b93011610bfe1 /recordmydesktop | |
parent | 395830a22e96d29a9bdf9001e9147bc25d71fd3f (diff) |
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
Diffstat (limited to 'recordmydesktop')
-rw-r--r-- | recordmydesktop/src/encode_image_buffer.c | 2 |
1 files changed, 2 insertions, 0 deletions
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"); |