Changeset 5ba2255e622499a3bb545e89c84a675f0adde07f
- Timestamp:
- 31/05/08 21:10:31
(6 months ago)
- Author:
- Rémi Denis-Courmont <rdenis@simphalempin.com>
- git-committer:
- Rémi Denis-Courmont <rdenis@simphalempin.com> 1212261031 +0300
- git-parent:
[3dfd0c4914338cc83373e1f4e006acdc0b1b1d43]
- git-author:
- Rémi Denis-Courmont <rdenis@simphalempin.com> 1212260777 +0300
- Message:
Remove vlc_int64_t. Was not even correctly defined.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| ra6b4c90 |
r5ba2255 |
|
| 101 | 101 | struct |
|---|
| 102 | 102 | { |
|---|
| 103 | | vlc_int64_t new_duration; |
|---|
| | 103 | int64_t new_duration; |
|---|
| 104 | 104 | } media_duration_changed; |
|---|
| 105 | 105 | struct |
|---|
| ra308763 |
r5ba2255 |
|
| 41 | 41 | #endif |
|---|
| 42 | 42 | |
|---|
| 43 | | #if (defined( WIN32 ) || defined( UNDER_CE )) && !defined( __MINGW32__ ) |
|---|
| 44 | | typedef signed __int64 vlc_int64_t; |
|---|
| 45 | | # else |
|---|
| 46 | | typedef signed long long vlc_int64_t; |
|---|
| 47 | | #endif |
|---|
| | 43 | #include <stdint.h> |
|---|
| 48 | 44 | |
|---|
| 49 | 45 | # ifdef __cplusplus |
|---|
| … | … | |
| 82 | 78 | */ |
|---|
| 83 | 79 | |
|---|
| 84 | | typedef vlc_int64_t libvlc_time_t; |
|---|
| | 80 | typedef int64_t libvlc_time_t; |
|---|
| 85 | 81 | |
|---|
| 86 | 82 | /**@} */ |
|---|
| rae87215 |
r5ba2255 |
|
| 77 | 77 | mediacontrol_PositionOrigin origin; |
|---|
| 78 | 78 | mediacontrol_PositionKey key; |
|---|
| 79 | | vlc_int64_t value; |
|---|
| | 79 | int64_t value; |
|---|
| 80 | 80 | } mediacontrol_Position; |
|---|
| 81 | 81 | |
|---|
| … | … | |
| 88 | 88 | int height; |
|---|
| 89 | 89 | uint32_t type; |
|---|
| 90 | | vlc_int64_t date; |
|---|
| | 90 | int64_t date; |
|---|
| 91 | 91 | int size; |
|---|
| 92 | 92 | char *data; |
|---|
| … | … | |
| 123 | 123 | mediacontrol_PlayerStatus streamstatus; |
|---|
| 124 | 124 | char *url; /* The URL of the current media stream */ |
|---|
| 125 | | vlc_int64_t position; /* actual location in the stream (in ms) */ |
|---|
| 126 | | vlc_int64_t length; /* total length of the stream (in ms) */ |
|---|
| | 125 | int64_t position; /* actual location in the stream (in ms) */ |
|---|
| | 126 | int64_t length; /* total length of the stream (in ms) */ |
|---|
| 127 | 127 | } mediacontrol_StreamInformation; |
|---|
| 128 | 128 | |
|---|
| re726825 |
r5ba2255 |
|
| 514 | 514 | * Get duration of media object. |
|---|
| 515 | 515 | **************************************************************************/ |
|---|
| 516 | | vlc_int64_t |
|---|
| | 516 | int64_t |
|---|
| 517 | 517 | libvlc_media_get_duration( libvlc_media_t * p_md, |
|---|
| 518 | 518 | libvlc_exception_t * p_e ) |
|---|
| r3c74d12 |
r5ba2255 |
|
| 124 | 124 | mediacontrol_Position* retval = NULL; |
|---|
| 125 | 125 | libvlc_exception_t ex; |
|---|
| 126 | | vlc_int64_t pos; |
|---|
| | 126 | int64_t pos; |
|---|
| 127 | 127 | |
|---|
| 128 | 128 | mediacontrol_exception_init( exception ); |
|---|
| … | … | |
| 164 | 164 | { |
|---|
| 165 | 165 | libvlc_exception_t ex; |
|---|
| 166 | | vlc_int64_t i_pos; |
|---|
| | 166 | int64_t i_pos; |
|---|
| 167 | 167 | |
|---|
| 168 | 168 | libvlc_exception_init( &ex ); |
|---|
| r445d63e |
r5ba2255 |
|
| 42 | 42 | mediacontrol_PositionKey from, |
|---|
| 43 | 43 | mediacontrol_PositionKey to, |
|---|
| 44 | | vlc_int64_t value ); |
|---|
| | 44 | int64_t value ); |
|---|
| 45 | 45 | libvlc_time_t private_mediacontrol_position2microsecond( libvlc_media_player_t *p_media_player, |
|---|
| 46 | 46 | const mediacontrol_Position *pos ); |
|---|
| … | … | |
| 52 | 52 | mediacontrol_RGBPicture *private_mediacontrol_RGBPicture__alloc( int datasize ); |
|---|
| 53 | 53 | |
|---|
| 54 | | mediacontrol_RGBPicture *private_mediacontrol_createRGBPicture( int, int, long, vlc_int64_t l_date, char *, int); |
|---|
| | 54 | mediacontrol_RGBPicture *private_mediacontrol_createRGBPicture( int, int, long, int64_t l_date, char *, int); |
|---|
| 55 | 55 | |
|---|
| 56 | 56 | |
|---|
| r8ee62bb |
r5ba2255 |
|
| 53 | 53 | mediacontrol_PositionKey from, |
|---|
| 54 | 54 | mediacontrol_PositionKey to, |
|---|
| 55 | | vlc_int64_t value ) |
|---|
| | 55 | int64_t value ) |
|---|
| 56 | 56 | { |
|---|
| 57 | 57 | if( to == from ) |
|---|
| … | … | |
| 101 | 101 | /* FIXME */ |
|---|
| 102 | 102 | /* vlc < 0.8 API */ |
|---|
| 103 | | /* return ( vlc_int64_t )( value * 50 * p_input->stream.i_mux_rate / f_fps ); */ |
|---|
| | 103 | /* return ( int64_t )( value * 50 * p_input->stream.i_mux_rate / f_fps ); */ |
|---|
| 104 | 104 | return 0; |
|---|
| 105 | 105 | } |
|---|
| 106 | 106 | |
|---|
| 107 | 107 | if( to == mediacontrol_MediaTime ) |
|---|
| 108 | | return( vlc_int64_t )( value * 1000.0 / ( double )f_fps ); |
|---|
| | 108 | return( int64_t )( value * 1000.0 / ( double )f_fps ); |
|---|
| 109 | 109 | |
|---|
| 110 | 110 | /* Cannot happen */ |
|---|
| … | … | |
| 247 | 247 | |
|---|
| 248 | 248 | mediacontrol_RGBPicture* |
|---|
| 249 | | private_mediacontrol_createRGBPicture( int i_width, int i_height, long i_chroma, vlc_int64_t l_date, |
|---|
| | 249 | private_mediacontrol_createRGBPicture( int i_width, int i_height, long i_chroma, int64_t l_date, |
|---|
| 250 | 250 | char* p_data, int i_datasize ) |
|---|
| 251 | 251 | { |
|---|