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
085fe545
Commit
085fe545
authored
Sep 14, 2009
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Used input_Create+input_Start in vlm.
When a callback on int-event is needed, it is a bit cleaner.
parent
f89d6ff9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
src/input/vlm.c
src/input/vlm.c
+7
-3
No files found.
src/input/vlm.c
View file @
085fe545
...
@@ -569,14 +569,18 @@ static int vlm_OnMediaUpdate( vlm_t *p_vlm, vlm_media_sys_t *p_media )
...
@@ -569,14 +569,18 @@ static int vlm_OnMediaUpdate( vlm_t *p_vlm, vlm_media_sys_t *p_media )
if
(
asprintf
(
&
psz_header
,
_
(
"Media: %s"
),
p_cfg
->
psz_name
)
==
-
1
)
if
(
asprintf
(
&
psz_header
,
_
(
"Media: %s"
),
p_cfg
->
psz_name
)
==
-
1
)
psz_header
=
NULL
;
psz_header
=
NULL
;
if
(
(
p_input
=
input_CreateAndStart
(
p_vlm
->
p_libvlc
,
p_media
->
vod
.
p_item
,
psz_header
)
)
)
p_input
=
input_Create
(
p_vlm
->
p_libvlc
,
p_media
->
vod
.
p_item
,
psz_header
,
NULL
);
if
(
p_input
)
{
{
vlc_sem_t
sem_preparse
;
vlc_sem_t
sem_preparse
;
vlc_sem_init
(
&
sem_preparse
,
0
);
vlc_sem_init
(
&
sem_preparse
,
0
);
var_AddCallback
(
p_input
,
"intf-event"
,
InputEventPreparse
,
&
sem_preparse
);
var_AddCallback
(
p_input
,
"intf-event"
,
InputEventPreparse
,
&
sem_preparse
);
while
(
!
p_input
->
b_dead
&&
(
!
p_cfg
->
vod
.
psz_mux
||
!
input_item_IsPreparsed
(
p_media
->
vod
.
p_item
)
)
)
if
(
!
input_Start
(
p_input
)
)
vlc_sem_wait
(
&
sem_preparse
);
{
while
(
!
p_input
->
b_dead
&&
(
!
p_cfg
->
vod
.
psz_mux
||
!
input_item_IsPreparsed
(
p_media
->
vod
.
p_item
)
)
)
vlc_sem_wait
(
&
sem_preparse
);
}
var_DelCallback
(
p_input
,
"intf-event"
,
InputEventPreparse
,
&
sem_preparse
);
var_DelCallback
(
p_input
,
"intf-event"
,
InputEventPreparse
,
&
sem_preparse
);
vlc_sem_destroy
(
&
sem_preparse
);
vlc_sem_destroy
(
&
sem_preparse
);
...
...
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