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
61ec345b
Commit
61ec345b
authored
Mar 16, 2003
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* asf: when there isn't any stream selected, stop playing.
parent
2f9b46d4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
1 deletion
+23
-1
modules/demux/asf/asf.c
modules/demux/asf/asf.c
+23
-1
No files found.
modules/demux/asf/asf.c
View file @
61ec345b
...
...
@@ -2,7 +2,7 @@
* asf.c : ASFv01 file input module for vlc
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: asf.c,v 1.2
3 2003/03/14 00:24:08 sigmunau
Exp $
* $Id: asf.c,v 1.2
4 2003/03/16 13:11:28 fenrir
Exp $
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
* This program is free software; you can redistribute it and/or modify
...
...
@@ -773,6 +773,23 @@ static int Demux( input_thread_t *p_input )
demux_sys_t
*
p_demux
=
p_input
->
p_demux_data
;
vlc_bool_t
b_play_audio
;
int
i
;
vlc_bool_t
b_stream
;
b_stream
=
VLC_FALSE
;
for
(
i
=
0
;
i
<
128
;
i
++
)
{
if
(
p_demux
->
stream
[
i
]
&&
p_demux
->
stream
[
i
]
->
p_es
&&
p_demux
->
stream
[
i
]
->
p_es
->
p_decoder_fifo
)
{
b_stream
=
VLC_TRUE
;
}
}
if
(
!
b_stream
)
{
msg_Warn
(
p_input
,
"no stream selected, exiting..."
);
return
(
0
);
}
/* catch seek from user */
if
(
p_input
->
stream
.
p_selected_program
->
i_synchro_state
==
SYNCHRO_REINIT
)
...
...
@@ -833,6 +850,11 @@ static int Demux( input_thread_t *p_input )
mtime_t
i_time_begin
=
GetMoviePTS
(
p_demux
);
int
i_result
;
if
(
p_input
->
b_die
)
{
break
;
}
if
(
(
i_result
=
DemuxPacket
(
p_input
,
b_play_audio
)
)
<=
0
)
{
return
i_result
;
...
...
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