Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
8f2d732d
Commit
8f2d732d
authored
Jan 26, 2004
by
Derk-Jan Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Remove crud
parent
41fd1676
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
33 deletions
+10
-33
modules/demux/util/sub.c
modules/demux/util/sub.c
+6
-7
modules/demux/util/sub.h
modules/demux/util/sub.h
+4
-26
No files found.
modules/demux/util/sub.c
View file @
8f2d732d
/*****************************************************************************
* sub.c
* sub.c
: subtitle demux for external subtitle files
*****************************************************************************
* Copyright (C) 1999-200
3
VideoLAN
* $Id: sub.c,v 1.4
3 2004/01/26 20:26:54 gbazi
n Exp $
* Copyright (C) 1999-200
4
VideoLAN
* $Id: sub.c,v 1.4
4 2004/01/26 22:32:51 hartma
n Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Derk-Jan Hartman <hartman at videolan dot org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
@@ -45,8 +46,7 @@ static int Open ( vlc_object_t *p_this );
static
int
sub_open
(
subtitle_demux_t
*
p_sub
,
input_thread_t
*
p_input
,
char
*
psz_name
,
mtime_t
i_microsecperframe
,
int
i_track_id
);
mtime_t
i_microsecperframe
);
static
int
sub_demux
(
subtitle_demux_t
*
p_sub
,
mtime_t
i_maxdate
);
static
int
sub_seek
(
subtitle_demux_t
*
p_sub
,
mtime_t
i_date
);
static
void
sub_close
(
subtitle_demux_t
*
p_sub
);
...
...
@@ -256,8 +256,7 @@ static char * local_stristr( char *psz_big, char *psz_little)
* sub_open: Open a subtitle file and add subtitle ES
*****************************************************************************/
static
int
sub_open
(
subtitle_demux_t
*
p_sub
,
input_thread_t
*
p_input
,
char
*
psz_name
,
mtime_t
i_microsecperframe
,
int
i_track_id
)
char
*
psz_name
,
mtime_t
i_microsecperframe
)
{
text_t
txt
;
vlc_value_t
val
;
...
...
modules/demux/util/sub.h
View file @
8f2d732d
/*****************************************************************************
* sub.h
*****************************************************************************
* Copyright (C) 2001-200
3
VideoLAN
* $Id: sub.h,v 1.1
4 2004/01/26 20:26:54 gbazi
n Exp $
* Copyright (C) 2001-200
4
VideoLAN
* $Id: sub.h,v 1.1
5 2004/01/26 22:32:51 hartma
n Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
...
...
@@ -40,22 +40,6 @@ typedef struct subtitle_s
}
subtitle_t
;
#if 0
typedef struct
{
int i_track_id;
char *psz_header;
int i_subtitle;
int i_subtitles;
subtitle_t *subtitle;
char *psz_language;
int i_previously_selected; /* to make pf_seek */
es_descriptor_t *p_es;
} subtitle_track_t;
#endif
typedef
struct
subtitle_demux_s
{
VLC_COMMON_MEMBERS
...
...
@@ -83,10 +67,6 @@ typedef struct subtitle_demux_s
int
i_previously_selected
;
/* to make pf_seek */
FILE
*
p_vobsub_file
;
/*unsigned int i_tracks;
subtitle_track_t *p_tracks
*/
}
subtitle_demux_t
;
/*****************************************************************************
...
...
@@ -103,8 +83,7 @@ typedef struct subtitle_demux_s
*****************************************************************************/
static
inline
subtitle_demux_t
*
subtitle_New
(
input_thread_t
*
p_input
,
char
*
psz_name
,
mtime_t
i_microsecperframe
,
int
i_track_id
)
mtime_t
i_microsecperframe
)
{
subtitle_demux_t
*
p_sub
;
...
...
@@ -114,8 +93,7 @@ static inline subtitle_demux_t *subtitle_New( input_thread_t *p_input,
p_sub
->
p_module
=
module_Need
(
p_sub
,
"subtitle demux"
,
""
);
if
(
p_sub
->
p_module
&&
p_sub
->
pf_open
(
p_sub
,
p_input
,
psz_name
,
i_microsecperframe
,
i_track_id
)
>=
0
)
p_sub
->
pf_open
(
p_sub
,
p_input
,
psz_name
,
i_microsecperframe
)
>=
0
)
{
msg_Info
(
p_input
,
"subtitle started"
);
...
...
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