Changeset 3876aaa761ba9ef1914a10591ecf0a1cbfcee6bc
- Timestamp:
- 17/05/06 21:38:53
(3 years ago)
- Author:
- Derk-Jan Hartman <hartman@videolan.org>
- git-committer:
- Derk-Jan Hartman <hartman@videolan.org> 1147894733 +0000
- git-parent:
[f0a9192492ee9edc9c01314bdc543c835d7e8972]
- git-author:
- Derk-Jan Hartman <hartman@videolan.org> 1147894733 +0000
- Message:
* This makes the cddax and vcdx modules compile again. meta is disabled. functionality is untested.
refs #649
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r4f15591 |
r3876aaa |
|
| 885 | 885 | { |
|---|
| 886 | 886 | vlc_meta_t **pp_meta = (vlc_meta_t**)va_arg( args, vlc_meta_t** ); |
|---|
| 887 | | if ( p_cdda->p_meta ) |
|---|
| | 887 | #if 0 |
|---|
| | 888 | if( p_cdda->p_meta ) |
|---|
| 888 | 889 | { |
|---|
| 889 | 890 | *pp_meta = vlc_meta_Duplicate( p_cdda->p_meta ); |
|---|
| … | … | |
| 891 | 892 | return VLC_SUCCESS; |
|---|
| 892 | 893 | } |
|---|
| 893 | | else { |
|---|
| | 894 | else |
|---|
| | 895 | #endif |
|---|
| | 896 | { |
|---|
| 894 | 897 | msg_Warn( p_access, "tried to copy NULL meta info" ); |
|---|
| 895 | 898 | return VLC_EGENERIC; |
|---|
| r7df7aab |
r3876aaa |
|
| 159 | 159 | #define add_meta_val(VLC_META, VAL) \ |
|---|
| 160 | 160 | if ( p_cdda->p_meta && VAL) { \ |
|---|
| 161 | | vlc_meta_Add( p_cdda->p_meta, VLC_META, VAL ); \ |
|---|
| | 161 | /*vlc_meta_Add( p_cdda->p_meta, VLC_META, VAL );*/ \ |
|---|
| 162 | 162 | dbg_print( INPUT_DBG_META, "field %s: %s\n", VLC_META, VAL ); \ |
|---|
| 163 | 163 | } \ |
|---|
| … | … | |
| 236 | 236 | |
|---|
| 237 | 237 | p_cdda->psz_mcn = cdio_get_mcn(p_cdda->p_cdio); |
|---|
| | 238 | #if 0 |
|---|
| 238 | 239 | p_cdda->p_meta = vlc_meta_New(); |
|---|
| | 240 | #endif |
|---|
| 239 | 241 | |
|---|
| 240 | 242 | #ifdef HAVE_LIBCDDB |
|---|
| … | … | |
| 820 | 822 | track_t i_track ) |
|---|
| 821 | 823 | { |
|---|
| 822 | | unsigned int i_track_frames = |
|---|
| 823 | | cdio_get_track_lsn(p_cdda->p_cdio, i_track+1) - |
|---|
| 824 | | cdio_get_track_lsn(p_cdda->p_cdio, i_track); |
|---|
| 825 | | mtime_t i_mduration = |
|---|
| 826 | | i_track_frames * (CLOCK_FREQ / CDIO_CD_FRAMES_PER_SEC) ; |
|---|
| | 824 | unsigned int i_track_frames = |
|---|
| | 825 | cdio_get_track_lsn(p_cdda->p_cdio, i_track+1) - |
|---|
| | 826 | cdio_get_track_lsn(p_cdda->p_cdio, i_track); |
|---|
| | 827 | mtime_t i_mduration = i_track_frames * (CLOCK_FREQ / CDIO_CD_FRAMES_PER_SEC) ; |
|---|
| 827 | 828 | char *psz_title = NULL; |
|---|
| 828 | 829 | char *psz_mrl = NULL; |
|---|
| … | … | |
| 839 | 840 | |
|---|
| 840 | 841 | p_child = playlist_ItemNew( p_playlist, psz_mrl, psz_title ); |
|---|
| 841 | | p_child->input.i_duration = i_mduration; |
|---|
| | 842 | p_child->p_input->i_duration = (mtime_t) i_mduration; |
|---|
| 842 | 843 | free(psz_mrl); |
|---|
| 843 | 844 | free(psz_title); |
|---|
| 844 | 845 | |
|---|
| 845 | 846 | if( !p_child ) return NULL; |
|---|
| 846 | | |
|---|
| | 847 | #if 0 |
|---|
| 847 | 848 | playlist_NodeAddItem( p_playlist, p_child, |
|---|
| 848 | | p_item->pp_parents[0]->i_view, |
|---|
| | 849 | p_item->p_parent->i_view, |
|---|
| 849 | 850 | p_item, PLAYLIST_APPEND, PLAYLIST_END ); |
|---|
| 850 | 851 | playlist_CopyParents( p_item, p_child ); |
|---|
| 851 | | |
|---|
| | 852 | #endif |
|---|
| 852 | 853 | return p_child; |
|---|
| 853 | 854 | } |
|---|
| … | … | |
| 857 | 858 | vlc_bool_t b_single ) |
|---|
| 858 | 859 | { |
|---|
| | 860 | #if 0 |
|---|
| 859 | 861 | add_playlist_track_info_str("Source", p_cdda->psz_source); |
|---|
| 860 | 862 | vlc_input_item_AddInfo( &p_item->input, _("Track"), _("Track Number"), |
|---|
| … | … | |
| 900 | 902 | } |
|---|
| 901 | 903 | #endif /*HAVE_LIBCDDB*/ |
|---|
| 902 | | |
|---|
| | 904 | #endif |
|---|
| 903 | 905 | return VLC_SUCCESS; |
|---|
| 904 | 906 | } |
|---|
| … | … | |
| 981 | 983 | t->i_length = I64C(1000000) * t->i_size / CDDA_FREQUENCY_SAMPLE / 4; |
|---|
| 982 | 984 | |
|---|
| 983 | | |
|---|
| 984 | | if (p_item) |
|---|
| | 985 | if( p_item ) |
|---|
| 985 | 986 | { |
|---|
| 986 | 987 | CDDAAddMetaToItem( p_access, p_cdda, p_item, i_track, VLC_FALSE ); |
|---|
| 987 | | p_item->input.i_duration = i_track_frames |
|---|
| | 988 | p_item->p_input->i_duration = (mtime_t) i_track_frames |
|---|
| 988 | 989 | * (CLOCK_FREQ / CDIO_CD_FRAMES_PER_SEC); |
|---|
| 989 | | p_item->input.psz_uri = CDDAFormatMRL(p_access, i_track); |
|---|
| | 990 | p_item->p_input->psz_uri = CDDAFormatMRL( p_access, i_track ); |
|---|
| 990 | 991 | } |
|---|
| 991 | 992 | |
|---|
| … | … | |
| 1026 | 1027 | p_cdda->i_titles = p_cdda->i_tracks; |
|---|
| 1027 | 1028 | p_access->info.i_update |= INPUT_UPDATE_TITLE|INPUT_UPDATE_SIZE; |
|---|
| 1028 | | if (p_item) { |
|---|
| 1029 | | p_item->input.i_duration = |
|---|
| | 1029 | if( p_item ) |
|---|
| | 1030 | { |
|---|
| | 1031 | p_item->p_input->i_duration = (mtime_t) |
|---|
| 1030 | 1032 | p_access->info.i_size * (CLOCK_FREQ / CDIO_CD_FRAMES_PER_SEC) ; |
|---|
| 1031 | | p_item->input.psz_uri = CDDAFormatMRL(p_access, |
|---|
| 1032 | | p_cdda->i_track); |
|---|
| | 1033 | p_item->p_input->psz_uri = CDDAFormatMRL( p_access, p_cdda->i_track ); |
|---|
| 1033 | 1034 | } |
|---|
| 1034 | 1035 | } |
|---|
| … | … | |
| 1037 | 1038 | if( b_play ) |
|---|
| 1038 | 1039 | { |
|---|
| 1039 | | playlist_Control( p_playlist, PLAYLIST_VIEWPLAY, |
|---|
| 1040 | | p_playlist->status.i_view, |
|---|
| | 1040 | playlist_Control( p_playlist, PLAYLIST_VIEWPLAY, 0, |
|---|
| 1041 | 1041 | p_playlist->status.p_item, NULL ); |
|---|
| 1042 | 1042 | } |
|---|
| r2cb472d |
r3876aaa |
|
| 903 | 903 | VLC_OBJECT_INPUT, |
|---|
| 904 | 904 | FIND_PARENT ); |
|---|
| 905 | | p_vcdplayer->p_meta = vlc_meta_New(); |
|---|
| | 905 | // p_vcdplayer->p_meta = vlc_meta_New(); |
|---|
| 906 | 906 | p_vcdplayer->p_segments = NULL; |
|---|
| 907 | 907 | p_vcdplayer->p_entries = NULL; |
|---|
| … | … | |
| 1038 | 1038 | |
|---|
| 1039 | 1039 | dbg_print( INPUT_DBG_EVENT, "get meta info" ); |
|---|
| 1040 | | |
|---|
| 1041 | | if ( p_vcdplayer->p_meta ) { |
|---|
| 1042 | | *pp_meta = vlc_meta_Duplicate( p_vcdplayer->p_meta ); |
|---|
| 1043 | | dbg_print( INPUT_DBG_META, "%s", "Meta copied" ); |
|---|
| 1044 | | } else |
|---|
| | 1040 | #if 0 |
|---|
| | 1041 | if( p_vcdplayer->p_meta ) |
|---|
| | 1042 | { |
|---|
| | 1043 | *pp_meta = vlc_meta_Duplicate( p_vcdplayer->p_meta ); |
|---|
| | 1044 | dbg_print( INPUT_DBG_META, "%s", "Meta copied" ); |
|---|
| | 1045 | } |
|---|
| | 1046 | else |
|---|
| | 1047 | #endif |
|---|
| 1045 | 1048 | msg_Warn( p_access, "tried to copy NULL meta info" ); |
|---|
| 1046 | 1049 | |
|---|