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
b54103b0
Commit
b54103b0
authored
Feb 20, 2013
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
raw*: initialize callbacks only at success
Also remove dated comment.
parent
5987f34d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
9 deletions
+6
-9
modules/demux/rawaud.c
modules/demux/rawaud.c
+2
-3
modules/demux/rawdv.c
modules/demux/rawdv.c
+2
-3
modules/demux/rawvid.c
modules/demux/rawvid.c
+2
-3
No files found.
modules/demux/rawaud.c
View file @
b54103b0
...
...
@@ -103,9 +103,6 @@ static int Open( vlc_object_t * p_this )
demux_t
*
p_demux
=
(
demux_t
*
)
p_this
;
demux_sys_t
*
p_sys
;
/* Set p_input field */
p_demux
->
pf_demux
=
Demux
;
p_demux
->
pf_control
=
Control
;
p_demux
->
p_sys
=
p_sys
=
malloc
(
sizeof
(
demux_sys_t
)
);
if
(
!
p_sys
)
return
VLC_ENOMEM
;
...
...
@@ -210,6 +207,8 @@ static int Open( vlc_object_t * p_this )
p_sys
->
i_frame_size
=
p_sys
->
i_frame_samples
*
p_sys
->
i_seek_step
;
msg_Dbg
(
p_demux
,
"frame size is %d bytes "
,
p_sys
->
i_frame_size
);
p_demux
->
pf_demux
=
Demux
;
p_demux
->
pf_control
=
Control
;
return
VLC_SUCCESS
;
}
...
...
modules/demux/rawdv.c
View file @
b54103b0
...
...
@@ -194,9 +194,6 @@ static int Open( vlc_object_t * p_this )
p_peek
+=
72
;
/* skip rest of DIF block */
/* Set p_input field */
p_demux
->
pf_demux
=
Demux
;
p_demux
->
pf_control
=
Control
;
p_demux
->
p_sys
=
p_sys
=
malloc
(
sizeof
(
demux_sys_t
)
);
if
(
!
p_sys
)
return
VLC_ENOMEM
;
...
...
@@ -236,6 +233,8 @@ static int Open( vlc_object_t * p_this )
p_sys
->
p_es_audio
=
es_out_Add
(
p_demux
->
out
,
&
p_sys
->
fmt_audio
);
}
p_demux
->
pf_demux
=
Demux
;
p_demux
->
pf_control
=
Control
;
return
VLC_SUCCESS
;
}
...
...
modules/demux/rawvid.c
View file @
b54103b0
...
...
@@ -169,9 +169,6 @@ static int Open( vlc_object_t * p_this )
return
VLC_EGENERIC
;
}
valid:
/* Set p_input field */
p_demux
->
pf_demux
=
Demux
;
p_demux
->
pf_control
=
Control
;
p_demux
->
p_sys
=
p_sys
=
malloc
(
sizeof
(
demux_sys_t
)
);
if
(
!
p_sys
)
return
VLC_ENOMEM
;
...
...
@@ -388,6 +385,8 @@ valid:
*
p_sys
->
fmt_video
.
video
.
i_bits_per_pixel
/
8
;
p_sys
->
p_es_video
=
es_out_Add
(
p_demux
->
out
,
&
p_sys
->
fmt_video
);
p_demux
->
pf_demux
=
Demux
;
p_demux
->
pf_control
=
Control
;
return
VLC_SUCCESS
;
error:
...
...
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