diff options
author | Ewald Snel <esnel@users.sourceforge.net> | 2003-03-03 07:37:23 +0000 |
---|---|---|
committer | Ewald Snel <esnel@users.sourceforge.net> | 2003-03-03 07:37:23 +0000 |
commit | 47167d0dce603161f9ec629d0eae178c368a57b1 (patch) | |
tree | 621e5f16937a25fd477fd5bdbe50d0319fb6863e /src/input/input_gnome_vfs.c | |
parent | 48be62b54906bd6cae986a906baa9676cac3525a (diff) | |
download | xine-lib-47167d0dce603161f9ec629d0eae178c368a57b1.tar.gz xine-lib-47167d0dce603161f9ec629d0eae178c368a57b1.tar.bz2 |
Remove pthread_cancel() support, these threads are never pthread_cancelled
- only some input plugins (still) have this... old code from xine 0.9.x?
CVS patchset: 4325
CVS date: 2003/03/03 07:37:23
Diffstat (limited to 'src/input/input_gnome_vfs.c')
-rw-r--r-- | src/input/input_gnome_vfs.c | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/src/input/input_gnome_vfs.c b/src/input/input_gnome_vfs.c index 4cf5ff46a..053ae91aa 100644 --- a/src/input/input_gnome_vfs.c +++ b/src/input/input_gnome_vfs.c @@ -18,7 +18,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: input_gnome_vfs.c,v 1.6 2003/02/23 03:56:10 hadess Exp $ + * $Id: input_gnome_vfs.c,v 1.7 2003/03/03 07:37:23 esnel Exp $ */ @@ -108,18 +108,6 @@ gnomevfs_plugin_read (input_plugin_t *this_gen, char *buf, off_t len) return num_bytes; } -/* - * helper function to release buffer - * in case demux thread is cancelled - */ -static void -pool_release_buffer (void *arg) -{ - buf_element_t *buf = (buf_element_t *) arg; - if( buf != NULL ) - buf->free_buffer(buf); -} - static buf_element_t* gnomevfs_plugin_read_block (input_plugin_t *this_gen, fifo_buffer_t *fifo, off_t todo) @@ -127,9 +115,6 @@ gnomevfs_plugin_read_block (input_plugin_t *this_gen, fifo_buffer_t *fifo, off_t total_bytes; buf_element_t *buf = fifo->buffer_pool_alloc (fifo); - pthread_setcancelstate (PTHREAD_CANCEL_ENABLE,NULL); - pthread_cleanup_push (pool_release_buffer, buf); - buf->content = buf->mem; buf->type = BUF_DEMUX_BLOCK; @@ -144,9 +129,6 @@ gnomevfs_plugin_read_block (input_plugin_t *this_gen, fifo_buffer_t *fifo, if (buf != NULL) buf->size = total_bytes; - pthread_setcancelstate (PTHREAD_CANCEL_DISABLE, NULL); - pthread_cleanup_pop (0); - return buf; } |