Changeset 3c230b2a0ee3bde44059d53b7917dd987e99606f
- Timestamp:
- 07/02/08 21:57:31
(2 months ago)
- Author:
- Laurent Aimar <fenrir@videolan.org>
- git-committer:
- Laurent Aimar <fenrir@videolan.org> 1215028651 +0000
- git-parent:
[2536e65c1266d9ec992acf4c516d8eb90acc81b3]
- git-author:
- Laurent Aimar <fenrir@videolan.org> 1215027588 +0000
- Message:
Fixed definition of asf_object_t.
Simplicy asf_object_t use.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r2536e65 |
r3c230b2 |
|
| 155 | 155 | static int ASF_ReadObjectCommon( stream_t *s, asf_object_t *p_obj ) |
|---|
| 156 | 156 | { |
|---|
| 157 | | asf_object_common_t *p_common = (asf_object_common_t*)p_obj; |
|---|
| | 157 | asf_object_common_t *p_common = &p_obj->common; |
|---|
| 158 | 158 | const uint8_t *p_peek; |
|---|
| 159 | 159 | |
|---|
| … | … | |
| 214 | 214 | static int ASF_ReadObject_Header( stream_t *s, asf_object_t *p_obj ) |
|---|
| 215 | 215 | { |
|---|
| 216 | | asf_object_header_t *p_hdr = (asf_object_header_t*)p_obj; |
|---|
| | 216 | asf_object_header_t *p_hdr = &p_obj->header; |
|---|
| 217 | 217 | asf_object_t *p_subobj; |
|---|
| 218 | 218 | int i_peek; |
|---|
| … | … | |
| 257 | 257 | static int ASF_ReadObject_Data( stream_t *s, asf_object_t *p_obj ) |
|---|
| 258 | 258 | { |
|---|
| 259 | | asf_object_data_t *p_data = (asf_object_data_t*)p_obj; |
|---|
| | 259 | asf_object_data_t *p_data = &p_obj->data; |
|---|
| 260 | 260 | int i_peek; |
|---|
| 261 | 261 | const uint8_t *p_peek; |
|---|
| … | … | |
| 282 | 282 | static int ASF_ReadObject_Index( stream_t *s, asf_object_t *p_obj ) |
|---|
| 283 | 283 | { |
|---|
| 284 | | asf_object_index_t *p_index = (asf_object_index_t*)p_obj; |
|---|
| | 284 | asf_object_index_t *p_index = &p_obj->index; |
|---|
| 285 | 285 | const uint8_t *p_peek; |
|---|
| 286 | 286 | int i; |
|---|
| … | … | |
| 327 | 327 | static void ASF_FreeObject_Index( asf_object_t *p_obj ) |
|---|
| 328 | 328 | { |
|---|
| 329 | | asf_object_index_t *p_index = (asf_object_index_t*)p_obj; |
|---|
| | 329 | asf_object_index_t *p_index = &p_obj->index; |
|---|
| 330 | 330 | |
|---|
| 331 | 331 | FREENULL( p_index->index_entry ); |
|---|
| … | … | |
| 334 | 334 | static int ASF_ReadObject_file_properties( stream_t *s, asf_object_t *p_obj ) |
|---|
| 335 | 335 | { |
|---|
| 336 | | asf_object_file_properties_t *p_fp = (asf_object_file_properties_t*)p_obj; |
|---|
| | 336 | asf_object_file_properties_t *p_fp = &p_obj->file_properties; |
|---|
| 337 | 337 | int i_peek; |
|---|
| 338 | 338 | const uint8_t *p_peek; |
|---|
| … | … | |
| 373 | 373 | static void ASF_FreeObject_metadata( asf_object_t *p_obj ) |
|---|
| 374 | 374 | { |
|---|
| 375 | | asf_object_metadata_t *p_meta = |
|---|
| 376 | | (asf_object_metadata_t *)p_obj; |
|---|
| | 375 | asf_object_metadata_t *p_meta = &p_obj->metadata; |
|---|
| 377 | 376 | unsigned int i; |
|---|
| 378 | 377 | |
|---|
| … | … | |
| 387 | 386 | static int ASF_ReadObject_metadata( stream_t *s, asf_object_t *p_obj ) |
|---|
| 388 | 387 | { |
|---|
| 389 | | asf_object_metadata_t *p_meta = |
|---|
| 390 | | (asf_object_metadata_t *)p_obj; |
|---|
| | 388 | asf_object_metadata_t *p_meta = &p_obj->metadata; |
|---|
| 391 | 389 | |
|---|
| 392 | 390 | int i_peek; |
|---|
| … | … | |
| 495 | 493 | static int ASF_ReadObject_header_extension( stream_t *s, asf_object_t *p_obj ) |
|---|
| 496 | 494 | { |
|---|
| 497 | | asf_object_header_extension_t *p_he = |
|---|
| 498 | | (asf_object_header_extension_t *)p_obj; |
|---|
| | 495 | asf_object_header_extension_t *p_he = &p_obj->header_extension; |
|---|
| 499 | 496 | int i_peek; |
|---|
| 500 | 497 | const uint8_t *p_peek; |
|---|
| … | … | |
| 558 | 555 | static void ASF_FreeObject_header_extension( asf_object_t *p_obj ) |
|---|
| 559 | 556 | { |
|---|
| 560 | | asf_object_header_extension_t *p_he = |
|---|
| 561 | | (asf_object_header_extension_t *)p_obj; |
|---|
| | 557 | asf_object_header_extension_t *p_he = &p_obj->header_extension; |
|---|
| 562 | 558 | |
|---|
| 563 | 559 | FREENULL( p_he->p_header_extension_data ); |
|---|
| … | … | |
| 566 | 562 | static int ASF_ReadObject_stream_properties( stream_t *s, asf_object_t *p_obj ) |
|---|
| 567 | 563 | { |
|---|
| 568 | | asf_object_stream_properties_t *p_sp = |
|---|
| 569 | | (asf_object_stream_properties_t*)p_obj; |
|---|
| | 564 | asf_object_stream_properties_t *p_sp = &p_obj->stream_properties; |
|---|
| 570 | 565 | size_t i_peek; |
|---|
| 571 | 566 | const uint8_t *p_peek; |
|---|
| … | … | |
| 647 | 642 | static void ASF_FreeObject_stream_properties( asf_object_t *p_obj ) |
|---|
| 648 | 643 | { |
|---|
| 649 | | asf_object_stream_properties_t *p_sp = |
|---|
| 650 | | (asf_object_stream_properties_t*)p_obj; |
|---|
| | 644 | asf_object_stream_properties_t *p_sp = &p_obj->stream_properties; |
|---|
| 651 | 645 | |
|---|
| 652 | 646 | FREENULL( p_sp->p_type_specific_data ); |
|---|
| … | … | |
| 657 | 651 | static int ASF_ReadObject_codec_list( stream_t *s, asf_object_t *p_obj ) |
|---|
| 658 | 652 | { |
|---|
| 659 | | asf_object_codec_list_t *p_cl = (asf_object_codec_list_t*)p_obj; |
|---|
| | 653 | asf_object_codec_list_t *p_cl = &p_obj->codec_list; |
|---|
| 660 | 654 | int i_peek; |
|---|
| 661 | 655 | const uint8_t *p_peek, *p_data; |
|---|
| … | … | |
| 737 | 731 | static void ASF_FreeObject_codec_list( asf_object_t *p_obj ) |
|---|
| 738 | 732 | { |
|---|
| 739 | | asf_object_codec_list_t *p_cl = (asf_object_codec_list_t*)p_obj; |
|---|
| | 733 | asf_object_codec_list_t *p_cl = &p_obj->codec_list; |
|---|
| 740 | 734 | unsigned int i_codec; |
|---|
| 741 | 735 | |
|---|
| … | … | |
| 755 | 749 | static int ASF_ReadObject_content_description(stream_t *s, asf_object_t *p_obj) |
|---|
| 756 | 750 | { |
|---|
| 757 | | asf_object_content_description_t *p_cd = |
|---|
| 758 | | (asf_object_content_description_t *)p_obj; |
|---|
| | 751 | asf_object_content_description_t *p_cd = &p_obj->content_description; |
|---|
| 759 | 752 | const uint8_t *p_peek, *p_data; |
|---|
| 760 | 753 | int i_peek, i_title, i_artist, i_copyright, i_description, i_rating; |
|---|
| … | … | |
| 822 | 815 | static void ASF_FreeObject_content_description( asf_object_t *p_obj) |
|---|
| 823 | 816 | { |
|---|
| 824 | | asf_object_content_description_t *p_cd = |
|---|
| 825 | | (asf_object_content_description_t *)p_obj; |
|---|
| | 817 | asf_object_content_description_t *p_cd = &p_obj->content_description; |
|---|
| 826 | 818 | |
|---|
| 827 | 819 | FREENULL( p_cd->psz_title ); |
|---|
| … | … | |
| 835 | 827 | static int ASF_ReadObject_language_list(stream_t *s, asf_object_t *p_obj) |
|---|
| 836 | 828 | { |
|---|
| 837 | | asf_object_language_list_t *p_ll = |
|---|
| 838 | | (asf_object_language_list_t*)p_obj; |
|---|
| | 829 | asf_object_language_list_t *p_ll = &p_obj->language_list; |
|---|
| 839 | 830 | const uint8_t *p_peek, *p_data; |
|---|
| 840 | 831 | int i_peek; |
|---|
| … | … | |
| 872 | 863 | static void ASF_FreeObject_language_list( asf_object_t *p_obj) |
|---|
| 873 | 864 | { |
|---|
| 874 | | asf_object_language_list_t *p_ll = |
|---|
| 875 | | (asf_object_language_list_t *)p_obj; |
|---|
| | 865 | asf_object_language_list_t *p_ll = &p_obj->language_list; |
|---|
| 876 | 866 | int i; |
|---|
| 877 | 867 | |
|---|
| … | … | |
| 885 | 875 | asf_object_t *p_obj) |
|---|
| 886 | 876 | { |
|---|
| 887 | | asf_object_stream_bitrate_properties_t *p_sb = |
|---|
| 888 | | (asf_object_stream_bitrate_properties_t *)p_obj; |
|---|
| | 877 | asf_object_stream_bitrate_properties_t *p_sb = &p_obj->stream_bitrate; |
|---|
| 889 | 878 | const uint8_t *p_peek, *p_data; |
|---|
| 890 | 879 | int i_peek; |
|---|
| … | … | |
| 927 | 916 | asf_object_t *p_obj) |
|---|
| 928 | 917 | { |
|---|
| 929 | | asf_object_extended_stream_properties_t *p_esp = |
|---|
| 930 | | (asf_object_extended_stream_properties_t*)p_obj; |
|---|
| | 918 | asf_object_extended_stream_properties_t *p_esp = &p_obj->ext_stream; |
|---|
| 931 | 919 | const uint8_t *p_peek, *p_data; |
|---|
| 932 | 920 | int i_peek, i; |
|---|
| … | … | |
| 1025 | 1013 | static void ASF_FreeObject_extended_stream_properties( asf_object_t *p_obj) |
|---|
| 1026 | 1014 | { |
|---|
| 1027 | | asf_object_extended_stream_properties_t *p_esp = |
|---|
| 1028 | | (asf_object_extended_stream_properties_t *)p_obj; |
|---|
| | 1015 | asf_object_extended_stream_properties_t *p_esp = &p_obj->ext_stream; |
|---|
| 1029 | 1016 | int i; |
|---|
| 1030 | 1017 | |
|---|
| … | … | |
| 1039 | 1026 | asf_object_t *p_obj) |
|---|
| 1040 | 1027 | { |
|---|
| 1041 | | asf_object_advanced_mutual_exclusion_t *p_ae = |
|---|
| 1042 | | (asf_object_advanced_mutual_exclusion_t *)p_obj; |
|---|
| | 1028 | asf_object_advanced_mutual_exclusion_t *p_ae = &p_obj->advanced_mutual_exclusion; |
|---|
| 1043 | 1029 | const uint8_t *p_peek, *p_data; |
|---|
| 1044 | 1030 | int i_peek; |
|---|
| … | … | |
| 1072 | 1058 | static void ASF_FreeObject_advanced_mutual_exclusion( asf_object_t *p_obj) |
|---|
| 1073 | 1059 | { |
|---|
| 1074 | | asf_object_advanced_mutual_exclusion_t *p_ae = |
|---|
| 1075 | | (asf_object_advanced_mutual_exclusion_t *)p_obj; |
|---|
| | 1060 | asf_object_advanced_mutual_exclusion_t *p_ae = &p_obj->advanced_mutual_exclusion; |
|---|
| 1076 | 1061 | |
|---|
| 1077 | 1062 | FREENULL( p_ae->pi_stream_number ); |
|---|
| … | … | |
| 1082 | 1067 | asf_object_t *p_obj) |
|---|
| 1083 | 1068 | { |
|---|
| 1084 | | asf_object_stream_prioritization_t *p_sp = |
|---|
| 1085 | | (asf_object_stream_prioritization_t *)p_obj; |
|---|
| | 1069 | asf_object_stream_prioritization_t *p_sp = &p_obj->stream_prioritization; |
|---|
| 1086 | 1070 | const uint8_t *p_peek, *p_data; |
|---|
| 1087 | 1071 | int i_peek; |
|---|
| … | … | |
| 1119 | 1103 | static void ASF_FreeObject_stream_prioritization( asf_object_t *p_obj) |
|---|
| 1120 | 1104 | { |
|---|
| 1121 | | asf_object_stream_prioritization_t *p_sp = |
|---|
| 1122 | | (asf_object_stream_prioritization_t *)p_obj; |
|---|
| | 1105 | asf_object_stream_prioritization_t *p_sp = &p_obj->stream_prioritization; |
|---|
| 1123 | 1106 | |
|---|
| 1124 | 1107 | FREENULL( p_sp->pi_priority_stream_number ); |
|---|
| … | … | |
| 1131 | 1114 | { |
|---|
| 1132 | 1115 | asf_object_extended_content_description_t *p_ec = |
|---|
| 1133 | | (asf_object_extended_content_description_t *)p_obj; |
|---|
| | 1116 | &p_obj->extended_content_description; |
|---|
| 1134 | 1117 | const uint8_t *p_peek, *p_data; |
|---|
| 1135 | 1118 | int i_peek; |
|---|
| … | … | |
| 1224 | 1207 | { |
|---|
| 1225 | 1208 | asf_object_extended_content_description_t *p_ec = |
|---|
| 1226 | | (asf_object_extended_content_description_t *)p_obj; |
|---|
| | 1209 | &p_obj->extended_content_description; |
|---|
| 1227 | 1210 | int i; |
|---|
| 1228 | 1211 | |
|---|
| r8770fee |
r3c230b2 |
|
| 443 | 443 | asf_object_codec_list_t codec_list; |
|---|
| 444 | 444 | asf_object_marker_t marker; |
|---|
| 445 | | asf_object_language_list_t lang; |
|---|
| | 445 | asf_object_language_list_t language_list; |
|---|
| 446 | 446 | asf_object_stream_bitrate_properties_t stream_bitrate; |
|---|
| 447 | 447 | asf_object_extended_stream_properties_t ext_stream; |
|---|
| | 448 | asf_object_content_description_t content_description; |
|---|
| | 449 | asf_object_advanced_mutual_exclusion_t advanced_mutual_exclusion; |
|---|
| | 450 | asf_object_stream_prioritization_t stream_prioritization; |
|---|
| | 451 | asf_object_extended_content_description_t extended_content_description; |
|---|
| 448 | 452 | |
|---|
| 449 | 453 | } asf_object_t; |
|---|