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
f4b976ef
Commit
f4b976ef
authored
Sep 28, 2004
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/demux/vobsub.c: compilation fix + fixed a few memleaks + priority back to 0.
parent
c2e2e1e3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
18 deletions
+16
-18
modules/demux/vobsub.c
modules/demux/vobsub.c
+16
-18
No files found.
modules/demux/vobsub.c
View file @
f4b976ef
...
...
@@ -46,7 +46,7 @@ static void Close( vlc_object_t *p_this );
vlc_module_begin
();
set_description
(
_
(
"Vobsub subtitles demux"
)
);
set_capability
(
"demux2"
,
1
);
set_capability
(
"demux2"
,
0
);
set_callbacks
(
Open
,
Close
);
...
...
@@ -113,30 +113,18 @@ static int Open ( vlc_object_t *p_this )
{
demux_t
*
p_demux
=
(
demux_t
*
)
p_this
;
demux_sys_t
*
p_sys
;
char
*
psz_vobname
,
*
s
;
int
i_len
;
char
*
psz_vobname
;
p_demux
->
pf_demux
=
Demux
;
p_demux
->
pf_control
=
Control
;
p_demux
->
p_sys
=
p_sys
=
malloc
(
sizeof
(
demux_sys_t
)
);
p_sys
->
i_length
=
0
;
p_sys
->
p_vobsub_file
=
NULL
;
p_sys
->
i_tracks
=
0
;
p_sys
->
track
=
(
vobsub_track_t
*
)
malloc
(
sizeof
(
vobsub_track_t
)
);
p_sys
->
i_original_frame_width
=
-
1
;
p_sys
->
i_original_frame_height
=
-
1
;
char
*
s
=
NULL
;
if
(
(
s
=
stream_ReadLine
(
p_demux
->
s
)
)
!=
NULL
)
{
if
(
!
strcasestr
(
s
,
"# VobSub index file"
)
)
{
msg_
Err
(
p_demux
,
"this doesn't seem to be a vobsub file, bailing
"
);
msg_
Dbg
(
p_demux
,
"this doesn't seem to be a vobsub file
"
);
free
(
s
);
return
VLC_EGENERIC
;
}
free
(
s
);
s
=
NULL
;
if
(
stream_Seek
(
p_demux
->
s
,
0
)
)
{
...
...
@@ -145,10 +133,20 @@ static int Open ( vlc_object_t *p_this )
}
else
{
msg_
Err
(
p_demux
,
"could not read vobsub IDX file"
);
msg_
Dbg
(
p_demux
,
"could not read vobsub IDX file"
);
return
VLC_EGENERIC
;
}
p_demux
->
pf_demux
=
Demux
;
p_demux
->
pf_control
=
Control
;
p_demux
->
p_sys
=
p_sys
=
malloc
(
sizeof
(
demux_sys_t
)
);
p_sys
->
i_length
=
0
;
p_sys
->
p_vobsub_file
=
NULL
;
p_sys
->
i_tracks
=
0
;
p_sys
->
track
=
(
vobsub_track_t
*
)
malloc
(
sizeof
(
vobsub_track_t
)
);
p_sys
->
i_original_frame_width
=
-
1
;
p_sys
->
i_original_frame_height
=
-
1
;
/* Load the whole file */
TextLoad
(
&
p_sys
->
txt
,
p_demux
->
s
);
...
...
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