Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
3876aaa7
Commit
3876aaa7
authored
May 17, 2006
by
Derk-Jan Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* This makes the cddax and vcdx modules compile again. meta is disabled. functionality is untested.
refs #649
parent
f0a91924
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
29 deletions
+35
-29
modules/access/cdda/access.c
modules/access/cdda/access.c
+5
-2
modules/access/cdda/info.c
modules/access/cdda/info.c
+21
-21
modules/access/vcdx/access.c
modules/access/vcdx/access.c
+9
-6
No files found.
modules/access/cdda/access.c
View file @
3876aaa7
...
...
@@ -884,13 +884,16 @@ static int CDDAControl( access_t *p_access, int i_query, va_list args )
case
ACCESS_GET_META
:
{
vlc_meta_t
**
pp_meta
=
(
vlc_meta_t
**
)
va_arg
(
args
,
vlc_meta_t
**
);
if
(
p_cdda
->
p_meta
)
#if 0
if( p_cdda->p_meta )
{
*pp_meta = vlc_meta_Duplicate( p_cdda->p_meta );
dbg_print( INPUT_DBG_META, "%s", "Meta copied" );
return VLC_SUCCESS;
}
else
{
else
#endif
{
msg_Warn
(
p_access
,
"tried to copy NULL meta info"
);
return
VLC_EGENERIC
;
}
...
...
modules/access/cdda/info.c
View file @
3876aaa7
...
...
@@ -158,7 +158,7 @@ cddb_end: ;
#define add_meta_val(VLC_META, VAL) \
if ( p_cdda->p_meta && VAL) { \
vlc_meta_Add( p_cdda->p_meta, VLC_META, VAL );
\
/*vlc_meta_Add( p_cdda->p_meta, VLC_META, VAL );*/
\
dbg_print( INPUT_DBG_META, "field %s: %s\n", VLC_META, VAL ); \
} \
...
...
@@ -235,7 +235,9 @@ CDDAMetaInfoInit( access_t *p_access )
p_cdda
->
i_tracks
);
p_cdda
->
psz_mcn
=
cdio_get_mcn
(
p_cdda
->
p_cdio
);
#if 0
p_cdda->p_meta = vlc_meta_New();
#endif
#ifdef HAVE_LIBCDDB
if
(
p_cdda
->
b_cddb_enabled
)
...
...
@@ -819,11 +821,10 @@ CDDACreatePlaylistItem( const access_t *p_access, cdda_data_t *p_cdda,
playlist_t
*
p_playlist
,
playlist_item_t
*
p_item
,
track_t
i_track
)
{
unsigned
int
i_track_frames
=
cdio_get_track_lsn
(
p_cdda
->
p_cdio
,
i_track
+
1
)
-
cdio_get_track_lsn
(
p_cdda
->
p_cdio
,
i_track
);
mtime_t
i_mduration
=
i_track_frames
*
(
CLOCK_FREQ
/
CDIO_CD_FRAMES_PER_SEC
)
;
unsigned
int
i_track_frames
=
cdio_get_track_lsn
(
p_cdda
->
p_cdio
,
i_track
+
1
)
-
cdio_get_track_lsn
(
p_cdda
->
p_cdio
,
i_track
);
mtime_t
i_mduration
=
i_track_frames
*
(
CLOCK_FREQ
/
CDIO_CD_FRAMES_PER_SEC
)
;
char
*
psz_title
=
NULL
;
char
*
psz_mrl
=
NULL
;
...
...
@@ -838,17 +839,17 @@ CDDACreatePlaylistItem( const access_t *p_access, cdda_data_t *p_cdda,
psz_mrl
,
psz_title
,
(
long
int
)
i_mduration
/
1000000
);
p_child
=
playlist_ItemNew
(
p_playlist
,
psz_mrl
,
psz_title
);
p_child
->
input
.
i_duration
=
i_mduration
;
p_child
->
p_input
->
i_duration
=
(
mtime_t
)
i_mduration
;
free
(
psz_mrl
);
free
(
psz_title
);
if
(
!
p_child
)
return
NULL
;
#if 0
playlist_NodeAddItem( p_playlist, p_child,
p_item
->
p
p_parents
[
0
]
->
i_view
,
p_item->p
_parent
->i_view,
p_item, PLAYLIST_APPEND, PLAYLIST_END );
playlist_CopyParents( p_item, p_child );
#endif
return
p_child
;
}
...
...
@@ -856,6 +857,7 @@ int CDDAAddMetaToItem( access_t *p_access, cdda_data_t *p_cdda,
playlist_item_t
*
p_item
,
int
i_track
,
vlc_bool_t
b_single
)
{
#if 0
add_playlist_track_info_str("Source", p_cdda->psz_source);
vlc_input_item_AddInfo( &p_item->input, _("Track"), _("Track Number"),
"%d", i_track );
...
...
@@ -899,7 +901,7 @@ int CDDAAddMetaToItem( access_t *p_access, cdda_data_t *p_cdda,
}
}
#endif /*HAVE_LIBCDDB*/
#endif
return
VLC_SUCCESS
;
}
...
...
@@ -980,13 +982,12 @@ CDDAFixupPlaylist( access_t *p_access, cdda_data_t *p_cdda,
t
->
i_length
=
I64C
(
1000000
)
*
t
->
i_size
/
CDDA_FREQUENCY_SAMPLE
/
4
;
if
(
p_item
)
if
(
p_item
)
{
CDDAAddMetaToItem
(
p_access
,
p_cdda
,
p_item
,
i_track
,
VLC_FALSE
);
p_item
->
input
.
i_duration
=
i_track_frames
p_item
->
p_input
->
i_duration
=
(
mtime_t
)
i_track_frames
*
(
CLOCK_FREQ
/
CDIO_CD_FRAMES_PER_SEC
);
p_item
->
input
.
psz_uri
=
CDDAFormatMRL
(
p_access
,
i_track
);
p_item
->
p_input
->
psz_uri
=
CDDAFormatMRL
(
p_access
,
i_track
);
}
p_cdda
->
i_titles
=
1
;
...
...
@@ -1025,19 +1026,18 @@ CDDAFixupPlaylist( access_t *p_access, cdda_data_t *p_cdda,
p_cdda
->
i_titles
=
p_cdda
->
i_tracks
;
p_access
->
info
.
i_update
|=
INPUT_UPDATE_TITLE
|
INPUT_UPDATE_SIZE
;
if
(
p_item
)
{
p_item
->
input
.
i_duration
=
if
(
p_item
)
{
p_item
->
p_input
->
i_duration
=
(
mtime_t
)
p_access
->
info
.
i_size
*
(
CLOCK_FREQ
/
CDIO_CD_FRAMES_PER_SEC
)
;
p_item
->
input
.
psz_uri
=
CDDAFormatMRL
(
p_access
,
p_cdda
->
i_track
);
p_item
->
p_input
->
psz_uri
=
CDDAFormatMRL
(
p_access
,
p_cdda
->
i_track
);
}
}
if
(
b_play
)
{
playlist_Control
(
p_playlist
,
PLAYLIST_VIEWPLAY
,
p_playlist
->
status
.
i_view
,
playlist_Control
(
p_playlist
,
PLAYLIST_VIEWPLAY
,
0
,
p_playlist
->
status
.
p_item
,
NULL
);
}
...
...
modules/access/vcdx/access.c
View file @
3876aaa7
...
...
@@ -902,7 +902,7 @@ VCDOpen ( vlc_object_t *p_this )
p_vcdplayer
->
p_input
=
vlc_object_find
(
p_access
,
VLC_OBJECT_INPUT
,
FIND_PARENT
);
p_vcdplayer
->
p_meta
=
vlc_meta_New
();
//
p_vcdplayer->p_meta = vlc_meta_New();
p_vcdplayer
->
p_segments
=
NULL
;
p_vcdplayer
->
p_entries
=
NULL
;
...
...
@@ -1037,11 +1037,14 @@ static int VCDControl( access_t *p_access, int i_query, va_list args )
vlc_meta_t
**
pp_meta
=
(
vlc_meta_t
**
)
va_arg
(
args
,
vlc_meta_t
**
);
dbg_print
(
INPUT_DBG_EVENT
,
"get meta info"
);
if
(
p_vcdplayer
->
p_meta
)
{
*
pp_meta
=
vlc_meta_Duplicate
(
p_vcdplayer
->
p_meta
);
dbg_print
(
INPUT_DBG_META
,
"%s"
,
"Meta copied"
);
}
else
#if 0
if( p_vcdplayer->p_meta )
{
*pp_meta = vlc_meta_Duplicate( p_vcdplayer->p_meta );
dbg_print( INPUT_DBG_META, "%s", "Meta copied" );
}
else
#endif
msg_Warn
(
p_access
,
"tried to copy NULL meta info"
);
return
VLC_SUCCESS
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment