Changeset 7c57276ba8134f628b660a3c75df52386331db2d
- Timestamp:
- 04/13/08 18:40:47
(5 months ago)
- Author:
- Jean-Paul Saman <jpsaman@videolan.org>
- git-committer:
- Jean-Paul Saman <jpsaman@videolan.org> 1208104847 +0200
- git-parent:
[f4995bebaa296afc70f586aa7393f53cd66b3161]
- git-author:
- Jean-Paul Saman <jpsaman@videolan.org> 1208097075 +0200
- Message:
Don't compile dynamicoverlay when there is no POSIX shared memory support on the system. Use VLC_UNUSED() iso (void)().
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r01bc969 |
r7c57276 |
|
| 35 | 35 | #include <string.h> |
|---|
| 36 | 36 | #include <ctype.h> |
|---|
| | 37 | |
|---|
| | 38 | #if defined(HAVE_SYS_SHM_H) |
|---|
| 37 | 39 | #include <sys/shm.h> |
|---|
| | 40 | #endif |
|---|
| 38 | 41 | |
|---|
| 39 | 42 | #include "dynamicoverlay.h" |
|---|
| … | … | |
| 155 | 158 | commandparams_t *p_params ) |
|---|
| 156 | 159 | { |
|---|
| 157 | | (void)(psz_end); |
|---|
| | 160 | VLC_UNUSED(psz_end); |
|---|
| 158 | 161 | skip_space( &psz_command ); |
|---|
| 159 | 162 | if( isdigit( *psz_command ) ) |
|---|
| … | … | |
| 168 | 171 | commandparams_t *p_params ) |
|---|
| 169 | 172 | { |
|---|
| 170 | | (void)(psz_command); |
|---|
| 171 | | (void)(psz_end); |
|---|
| 172 | | (void)(p_params); |
|---|
| | 173 | VLC_UNUSED(psz_command); |
|---|
| | 174 | VLC_UNUSED(psz_end); |
|---|
| | 175 | VLC_UNUSED(p_params); |
|---|
| 173 | 176 | return VLC_SUCCESS; |
|---|
| 174 | 177 | } |
|---|
| … | … | |
| 177 | 180 | commandparams_t *p_params ) |
|---|
| 178 | 181 | { |
|---|
| 179 | | (void)(psz_end); |
|---|
| | 182 | VLC_UNUSED(psz_end); |
|---|
| 180 | 183 | skip_space( &psz_command ); |
|---|
| 181 | 184 | if( isdigit( *psz_command ) ) |
|---|
| … | … | |
| 196 | 199 | commandparams_t *p_params ) |
|---|
| 197 | 200 | { |
|---|
| 198 | | (void)(psz_end); |
|---|
| | 201 | VLC_UNUSED(psz_end); |
|---|
| 199 | 202 | skip_space( &psz_command ); |
|---|
| 200 | 203 | if( isdigit( *psz_command ) ) |
|---|
| … | … | |
| 221 | 224 | commandparams_t *p_params ) |
|---|
| 222 | 225 | { |
|---|
| 223 | | (void)(psz_end); |
|---|
| | 226 | VLC_UNUSED(psz_end); |
|---|
| 224 | 227 | skip_space( &psz_command ); |
|---|
| 225 | 228 | if( isdigit( *psz_command ) ) |
|---|
| … | … | |
| 241 | 244 | { |
|---|
| 242 | 245 | int r, g, b; |
|---|
| 243 | | (void)(psz_end); |
|---|
| | 246 | VLC_UNUSED(psz_end); |
|---|
| 244 | 247 | skip_space( &psz_command ); |
|---|
| 245 | 248 | if( isdigit( *psz_command ) ) |
|---|
| … | … | |
| 273 | 276 | commandparams_t *p_params ) |
|---|
| 274 | 277 | { |
|---|
| 275 | | (void)(psz_end); |
|---|
| | 278 | VLC_UNUSED(psz_end); |
|---|
| 276 | 279 | skip_space( &psz_command ); |
|---|
| 277 | 280 | if( isdigit( *psz_command ) ) |
|---|
| … | … | |
| 292 | 295 | commandparams_t *p_params ) |
|---|
| 293 | 296 | { |
|---|
| 294 | | (void)(psz_end); |
|---|
| | 297 | VLC_UNUSED(psz_end); |
|---|
| 295 | 298 | skip_space( &psz_command ); |
|---|
| 296 | 299 | if( isdigit( *psz_command ) ) |
|---|
| … | … | |
| 317 | 320 | buffer_t *p_output ) |
|---|
| 318 | 321 | { |
|---|
| 319 | | (void)(p_results); |
|---|
| | 322 | VLC_UNUSED(p_results); |
|---|
| 320 | 323 | VLC_UNUSED(p_output); |
|---|
| 321 | 324 | return VLC_SUCCESS; |
|---|
| … | … | |
| 411 | 414 | commandparams_t *p_results ) |
|---|
| 412 | 415 | { |
|---|
| | 416 | #if defined(HAVE_SYS_SHM_H) |
|---|
| 413 | 417 | filter_sys_t *p_sys = (filter_sys_t*) p_filter->p_sys; |
|---|
| 414 | 418 | struct shmid_ds shminfo; |
|---|
| … | … | |
| 416 | 420 | size_t i_size; |
|---|
| 417 | 421 | |
|---|
| 418 | | (void)(p_results); |
|---|
| | 422 | VLC_UNUSED(p_results); |
|---|
| 419 | 423 | |
|---|
| 420 | 424 | p_ovl = ListGet( &p_sys->overlays, p_params->i_id ); |
|---|
| … | … | |
| 471 | 475 | return VLC_ENOMEM; |
|---|
| 472 | 476 | } |
|---|
| 473 | | |
|---|
| 474 | 477 | memcpy( p_ovl->data.p_text, p_data, p_params->i_width ); |
|---|
| 475 | 478 | |
|---|
| … | … | |
| 483 | 486 | p_ovl->data.p_pic = malloc( sizeof( picture_t ) ); |
|---|
| 484 | 487 | if( p_ovl->data.p_pic == NULL ) |
|---|
| 485 | | { |
|---|
| 486 | | msg_Err( p_filter, "Unable to allocate picture structure" ); |
|---|
| 487 | 488 | return VLC_ENOMEM; |
|---|
| 488 | | } |
|---|
| 489 | 489 | |
|---|
| 490 | 490 | vout_InitFormat( &p_ovl->format, p_params->fourcc, |
|---|
| … | … | |
| 546 | 546 | shmdt( p_data ); |
|---|
| 547 | 547 | } |
|---|
| 548 | | |
|---|
| 549 | 548 | p_sys->b_updated = p_ovl->b_active; |
|---|
| 550 | 549 | |
|---|
| 551 | 550 | return VLC_SUCCESS; |
|---|
| | 551 | #else |
|---|
| | 552 | VLC_UNUSED(p_params); |
|---|
| | 553 | VLC_UNUSED(p_results); |
|---|
| | 554 | |
|---|
| | 555 | msg_Err( p_filter, "system doesn't support shared memory" ); |
|---|
| | 556 | return VLC_EGENERIC; |
|---|
| | 557 | #endif |
|---|
| 552 | 558 | } |
|---|
| 553 | 559 | |
|---|
| … | … | |
| 556 | 562 | commandparams_t *p_results ) |
|---|
| 557 | 563 | { |
|---|
| 558 | | (void)(p_results); |
|---|
| | 564 | VLC_UNUSED(p_results); |
|---|
| 559 | 565 | filter_sys_t *p_sys = (filter_sys_t*) p_filter->p_sys; |
|---|
| 560 | 566 | p_sys->b_updated = VLC_TRUE; |
|---|
| … | … | |
| 567 | 573 | commandparams_t *p_results ) |
|---|
| 568 | 574 | { |
|---|
| 569 | | (void)(p_params); |
|---|
| 570 | | (void)(p_results); |
|---|
| | 575 | VLC_UNUSED(p_params); |
|---|
| | 576 | VLC_UNUSED(p_results); |
|---|
| 571 | 577 | filter_sys_t *p_sys = (filter_sys_t*) p_filter->p_sys; |
|---|
| 572 | 578 | QueueTransfer( &p_sys->pending, &p_sys->atomic ); |
|---|
| … | … | |
| 579 | 585 | commandparams_t *p_results ) |
|---|
| 580 | 586 | { |
|---|
| 581 | | (void)(p_params); |
|---|
| | 587 | VLC_UNUSED(p_params); |
|---|
| 582 | 588 | filter_sys_t *p_sys = (filter_sys_t*) p_filter->p_sys; |
|---|
| 583 | 589 | |
|---|
| … | … | |
| 678 | 684 | commandparams_t *p_results ) |
|---|
| 679 | 685 | { |
|---|
| 680 | | (void)(p_results); |
|---|
| | 686 | VLC_UNUSED(p_results); |
|---|
| 681 | 687 | filter_sys_t *p_sys = (filter_sys_t*) p_filter->p_sys; |
|---|
| 682 | 688 | |
|---|
| … | … | |
| 694 | 700 | commandparams_t *p_results ) |
|---|
| 695 | 701 | { |
|---|
| 696 | | (void)(p_results); |
|---|
| | 702 | VLC_UNUSED(p_results); |
|---|
| 697 | 703 | filter_sys_t *p_sys = (filter_sys_t*) p_filter->p_sys; |
|---|
| 698 | 704 | |
|---|
| … | … | |
| 712 | 718 | commandparams_t *p_results ) |
|---|
| 713 | 719 | { |
|---|
| 714 | | (void)(p_results); |
|---|
| | 720 | VLC_UNUSED(p_results); |
|---|
| 715 | 721 | filter_sys_t *p_sys = (filter_sys_t*) p_filter->p_sys; |
|---|
| 716 | 722 | |
|---|
| … | … | |
| 728 | 734 | commandparams_t *p_results ) |
|---|
| 729 | 735 | { |
|---|
| 730 | | (void)(p_results); |
|---|
| | 736 | VLC_UNUSED(p_results); |
|---|
| 731 | 737 | filter_sys_t *p_sys = (filter_sys_t*) p_filter->p_sys; |
|---|
| 732 | 738 | |
|---|
| … | … | |
| 744 | 750 | commandparams_t *p_results ) |
|---|
| 745 | 751 | { |
|---|
| 746 | | (void)(p_results); |
|---|
| | 752 | VLC_UNUSED(p_results); |
|---|
| 747 | 753 | filter_sys_t *p_sys = (filter_sys_t*) p_filter->p_sys; |
|---|
| 748 | 754 | |
|---|
| … | … | |
| 760 | 766 | commandparams_t *p_results ) |
|---|
| 761 | 767 | { |
|---|
| 762 | | (void)(p_results); |
|---|
| | 768 | VLC_UNUSED(p_results); |
|---|
| 763 | 769 | filter_sys_t *p_sys = (filter_sys_t*) p_filter->p_sys; |
|---|
| 764 | 770 | |
|---|
| … | … | |
| 777 | 783 | { |
|---|
| 778 | 784 | filter_sys_t *p_sys = (filter_sys_t*) p_filter->p_sys; |
|---|
| 779 | | (void)(p_params); |
|---|
| 780 | | (void)(p_results); |
|---|
| | 785 | VLC_UNUSED(p_params); |
|---|
| | 786 | VLC_UNUSED(p_results); |
|---|
| 781 | 787 | |
|---|
| 782 | 788 | p_sys->b_atomic = VLC_TRUE; |
|---|