Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
2078838d
Commit
2078838d
authored
May 25, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Always create a new object with the parent object
parent
e5287a68
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
modules/stream_out/rtp.c
modules/stream_out/rtp.c
+1
-1
src/input/decoder.c
src/input/decoder.c
+1
-1
src/input/vlm.c
src/input/vlm.c
+4
-4
src/osd/osd.c
src/osd/osd.c
+1
-1
No files found.
modules/stream_out/rtp.c
View file @
2078838d
...
...
@@ -1760,7 +1760,7 @@ static sout_access_out_t *GrabberCreate( sout_stream_t *p_stream )
{
sout_access_out_t
*
p_grab
;
p_grab
=
vlc_object_create
(
p_stream
->
p_sout
,
sizeof
(
*
p_grab
)
);
p_grab
=
vlc_object_create
(
p_stream
,
sizeof
(
*
p_grab
)
);
if
(
p_grab
==
NULL
)
return
NULL
;
...
...
src/input/decoder.c
View file @
2078838d
...
...
@@ -828,7 +828,7 @@ static decoder_t * CreateDecoder( vlc_object_t *p_parent,
p_dec
->
b_need_packetized
&&
!
p_dec
->
fmt_in
.
b_packetized
)
{
p_owner
->
p_packetizer
=
vlc_custom_create
(
p_
dec
,
sizeof
(
decoder_t
),
vlc_custom_create
(
p_
parent
,
sizeof
(
decoder_t
),
VLC_OBJECT_DECODER
,
"packetizer"
);
if
(
p_owner
->
p_packetizer
)
{
...
...
src/input/vlm.c
View file @
2078838d
...
...
@@ -146,8 +146,8 @@ vlm_t *vlm_New ( vlc_object_t *p_this )
msg_Dbg
(
p_this
,
"creating VLM"
);
p_vlm
=
vlc_custom_create
(
p_this
,
sizeof
(
*
p_vlm
),
VLC_OBJECT_GENERIC
,
vlm_object_name
);
p_vlm
=
vlc_custom_create
(
p_this
->
p_libvlc
,
sizeof
(
*
p_vlm
)
,
VLC_OBJECT_GENERIC
,
vlm_object_name
);
if
(
!
p_vlm
)
{
vlc_mutex_unlock
(
&
vlm_mutex
);
...
...
@@ -761,7 +761,7 @@ static int vlm_ControlMediaAdd( vlm_t *p_vlm, vlm_media_t *p_cfg, int64_t *p_id
{
p_vlm
->
p_vod
=
vlc_custom_create
(
VLC_OBJECT
(
p_vlm
),
sizeof
(
vod_t
),
VLC_OBJECT_GENERIC
,
"vod server"
);
vlc_object_attach
(
p_vlm
->
p_vod
,
p_vlm
->
p_libvlc
);
vlc_object_attach
(
p_vlm
->
p_vod
,
p_vlm
);
p_vlm
->
p_vod
->
p_module
=
module_need
(
p_vlm
->
p_vod
,
"vod server"
,
"$vod-server"
,
false
);
if
(
!
p_vlm
->
p_vod
->
p_module
)
{
...
...
@@ -903,7 +903,7 @@ static vlm_media_instance_sys_t *vlm_MediaInstanceNew( vlm_t *p_vlm, const char
p_instance
->
i_index
=
0
;
p_instance
->
b_sout_keep
=
false
;
p_instance
->
p_parent
=
vlc_object_create
(
p_vlm
,
sizeof
(
vlc_object_t
)
);
vlc_object_attach
(
p_instance
->
p_parent
,
p_vlm
->
p_libvlc
);
vlc_object_attach
(
p_instance
->
p_parent
,
p_vlm
);
p_instance
->
p_input
=
NULL
;
p_instance
->
p_input_resource
=
NULL
;
...
...
src/osd/osd.c
View file @
2078838d
...
...
@@ -160,7 +160,7 @@ osd_menu_t *osd_MenuCreate( vlc_object_t *p_this, const char *psz_file )
{
static
const
char
osdmenu_name
[]
=
"osd menu"
;
p_osd
=
vlc_custom_create
(
p_this
,
sizeof
(
*
p_osd
),
p_osd
=
vlc_custom_create
(
p_this
->
p_libvlc
,
sizeof
(
*
p_osd
),
VLC_OBJECT_GENERIC
,
osdmenu_name
);
if
(
!
p_osd
)
return
NULL
;
...
...
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