Changeset 0bcda15e362b5e00fd4b6f458206ac52035b217d
- Timestamp:
- 06/06/08 11:38:47
(3 months ago)
- Author:
- Rafaël Carré <funman@videolan.org>
- git-committer:
- Rafaël Carré <funman@videolan.org> 1212745127 +0200
- git-parent:
[8e95f585aa1986e02153ed407abf00d998d8af3b]
- git-author:
- Rafaël Carré <funman@videolan.org> 1212745127 +0200
- Message:
stream_Read() : makes the buffer mandatory
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r5df2e97 |
r0bcda15 |
|
| 805 | 805 | |
|---|
| 806 | 806 | /* Copy data */ |
|---|
| 807 | | if( p_data ) |
|---|
| 808 | | { |
|---|
| 809 | | memcpy( p_data, |
|---|
| | 807 | memcpy( p_data, |
|---|
| 810 | 808 | &p_sys->block.p_current->p_buffer[p_sys->block.i_offset], |
|---|
| 811 | 809 | i_copy ); |
|---|
| 812 | | p_data += i_copy; |
|---|
| 813 | | } |
|---|
| | 810 | p_data += i_copy; |
|---|
| 814 | 811 | i_data += i_copy; |
|---|
| 815 | 812 | |
|---|
| … | … | |
| 1149 | 1146 | /* Copy data */ |
|---|
| 1150 | 1147 | /* msg_Dbg( s, "AStreamReadStream: copy %d", i_copy ); */ |
|---|
| 1151 | | if( p_data ) |
|---|
| 1152 | | { |
|---|
| 1153 | | memcpy( p_data, &tk->p_buffer[i_off], i_copy ); |
|---|
| 1154 | | p_data += i_copy; |
|---|
| 1155 | | } |
|---|
| | 1148 | memcpy( p_data, &tk->p_buffer[i_off], i_copy ); |
|---|
| | 1149 | p_data += i_copy; |
|---|
| 1156 | 1150 | i_data += i_copy; |
|---|
| 1157 | 1151 | p_sys->stream.i_offset += i_copy; |
|---|
| … | … | |
| 2075 | 2069 | int stream_Read( stream_t *s, void *p_read, int i_read ) |
|---|
| 2076 | 2070 | { |
|---|
| | 2071 | assert( s ); |
|---|
| | 2072 | assert( p_read ); |
|---|
| 2077 | 2073 | return s->pf_read( s, p_read, i_read ); |
|---|
| 2078 | 2074 | } |
|---|