Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
5b3a2948
Commit
5b3a2948
authored
Mar 29, 2008
by
Pierre
Browse files
input: retain the input item.
parent
ab121fdf
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/input/input.c
View file @
5b3a2948
...
...
@@ -177,6 +177,7 @@ static input_thread_t *Create( vlc_object_t *p_parent, input_item_t *p_item,
p_input
->
i_pts_delay
=
0
;
/* Init Input fields */
vlc_gc_incref
(
p_item
);
/* Released in Destructor() */
p_input
->
p
->
input
.
p_item
=
p_item
;
p_input
->
p
->
input
.
p_access
=
NULL
;
p_input
->
p
->
input
.
p_stream
=
NULL
;
...
...
@@ -313,6 +314,8 @@ static void Destructor( input_thread_t * p_input )
sout_DeleteInstance
(
priv
->
p_sout
);
}
vlc_gc_decref
(
p_input
->
p
->
input
.
p_item
);
vlc_mutex_destroy
(
&
p_input
->
p
->
counters
.
counters_lock
);
vlc_mutex_destroy
(
&
priv
->
lock_control
);
...
...
src/misc/objects.c
View file @
5b3a2948
...
...
@@ -1234,7 +1234,9 @@ void vlc_list_release( vlc_list_t *p_list )
void
__vlc_object_dump
(
vlc_object_t
*
p_this
)
{
vlc_mutex_lock
(
&
structure_lock
);
PrintObject
(
p_this
,
"vlc_object_dump: "
);
char
psz_foo
[
2
*
MAX_DUMPSTRUCTURE_DEPTH
+
1
];
psz_foo
[
0
]
=
'|'
;
DumpStructure
(
p_this
,
0
,
psz_foo
);
vlc_mutex_unlock
(
&
structure_lock
);
}
...
...
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