diff options
author | James Stembridge <jstembridge@users.sourceforge.net> | 2005-05-22 19:50:05 +0000 |
---|---|---|
committer | James Stembridge <jstembridge@users.sourceforge.net> | 2005-05-22 19:50:05 +0000 |
commit | 0cc759bcc2e1c93c7965b40b8a45b41ba521ccc6 (patch) | |
tree | ffda5f5b8d235034571e03677e807272e8c412da /src | |
parent | 2674339aa87ad6a59306b19e7fa0b24ec4058c70 (diff) | |
download | xine-lib-0cc759bcc2e1c93c7965b40b8a45b41ba521ccc6.tar.gz xine-lib-0cc759bcc2e1c93c7965b40b8a45b41ba521ccc6.tar.bz2 |
**BUGFIX**
Sparc can't do unaligned access
CVS patchset: 7558
CVS date: 2005/05/22 19:50:05
Diffstat (limited to 'src')
-rw-r--r-- | src/xine-engine/input_cache.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/xine-engine/input_cache.c b/src/xine-engine/input_cache.c index 4a3e309c3..9c448f792 100644 --- a/src/xine-engine/input_cache.c +++ b/src/xine-engine/input_cache.c @@ -22,7 +22,7 @@ * The goal of this input plugin is to reduce * the number of calls to the real input plugin. * - * $Id: input_cache.c,v 1.6 2005/02/09 20:03:19 tmattern Exp $ + * $Id: input_cache.c,v 1.7 2005/05/22 19:50:05 jstembridge Exp $ */ #ifdef HAVE_CONFIG_H @@ -73,6 +73,7 @@ static off_t cache_plugin_read(input_plugin_t *this_gen, char *buf, off_t len) { if (len <= (this->buf_len - this->buf_pos)) { /* all bytes are in the buffer */ switch (len) { +#if !(defined(sparc) || defined(__sparc__)) case 8: *((uint64_t *)buf) = *(uint64_t *)(&(this->buf[this->buf_pos])); break; @@ -95,6 +96,7 @@ static off_t cache_plugin_read(input_plugin_t *this_gen, char *buf, off_t len) { case 2: *((uint16_t *)buf) = *(uint16_t *)(&(this->buf[this->buf_pos])); break; +#endif case 1: *buf = (char)this->buf[this->buf_pos]; break; |