Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
e38e99ed
Commit
e38e99ed
authored
Jan 27, 2004
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/demux/util/*: fixed segfault with new vobsub code.
parent
f1c67b56
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
modules/demux/util/sub.c
modules/demux/util/sub.c
+2
-4
modules/demux/util/sub.h
modules/demux/util/sub.h
+2
-2
No files found.
modules/demux/util/sub.c
View file @
e38e99ed
...
...
@@ -2,7 +2,7 @@
* sub.c: subtitle demux for external subtitle files
*****************************************************************************
* Copyright (C) 1999-2004 VideoLAN
* $Id: sub.c,v 1.4
5 2004/01/27 07:05:10 hartma
n Exp $
* $Id: sub.c,v 1.4
6 2004/01/27 11:57:05 gbazi
n Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Derk-Jan Hartman <hartman at videolan dot org>
...
...
@@ -97,8 +97,6 @@ static int Open ( vlc_object_t *p_this )
p_sub
->
pf_seek
=
sub_seek
;
p_sub
->
pf_close
=
sub_close
;
ps_track_init
(
p_sub
->
tk
);
/* Initialize the variables */
var_Create
(
p_this
,
"sub-fps"
,
VLC_VAR_FLOAT
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_this
,
"sub-delay"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
...
...
@@ -397,6 +395,7 @@ static int sub_open( subtitle_demux_t *p_sub, input_thread_t *p_input,
else
if
(
local_stristr
(
s
,
"# VobSub index file"
)
)
{
i_sub_type
=
SUB_TYPE_VOBSUB
;
ps_track_init
(
p_sub
->
tk
);
break
;
}
}
...
...
@@ -1184,4 +1183,3 @@ static int DemuxVobSub( subtitle_demux_t *p_demux, uint8_t *pkt, int i_pkt )
return
VLC_SUCCESS
;
}
modules/demux/util/sub.h
View file @
e38e99ed
...
...
@@ -2,7 +2,7 @@
* sub.h
*****************************************************************************
* Copyright (C) 2001-2004 VideoLAN
* $Id: sub.h,v 1.1
7 2004/01/27 07:05:10 hartma
n Exp $
* $Id: sub.h,v 1.1
8 2004/01/27 11:57:05 gbazi
n Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
...
...
@@ -67,7 +67,7 @@ typedef struct subtitle_demux_s
es_out_id_t
*
p_es
;
int
i_previously_selected
;
/* to make pf_seek */
FILE
*
p_vobsub_file
;
ps_track_t
*
tk
[
PS_TK_COUNT
];
ps_track_t
tk
[
PS_TK_COUNT
];
}
subtitle_demux_t
;
...
...
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