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
8d7538d8
Commit
8d7538d8
authored
Sep 08, 2003
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* sdp: commented out a debug message and added some sort of eof detection.
parent
119b66fb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
3 deletions
+16
-3
modules/demux/sdp.c
modules/demux/sdp.c
+16
-3
No files found.
modules/demux/sdp.c
View file @
8d7538d8
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* sdp.c: SDP parser and builtin UDP/RTP/RTSP
* sdp.c: SDP parser and builtin UDP/RTP/RTSP
*****************************************************************************
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* Copyright (C) 2001 VideoLAN
* $Id: sdp.c,v 1.
7 2003/09/08 07:38:3
0 fenrir Exp $
* $Id: sdp.c,v 1.
8 2003/09/08 13:09:4
0 fenrir Exp $
*
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
*
...
@@ -74,6 +74,10 @@ struct demux_sys_t
...
@@ -74,6 +74,10 @@ struct demux_sys_t
stream_t
*
s
;
stream_t
*
s
;
media_client_t
*
mc
;
media_client_t
*
mc
;
/* try to detect end of stream */
vlc_bool_t
b_received_data
;
int
i_no_data
;
};
};
struct
media_client_sys_t
struct
media_client_sys_t
...
@@ -245,6 +249,8 @@ static int SDPOpen( vlc_object_t * p_this )
...
@@ -245,6 +249,8 @@ static int SDPOpen( vlc_object_t * p_this )
msg_Err
(
p_input
,
"cannot create stream"
);
msg_Err
(
p_input
,
"cannot create stream"
);
goto
error
;
goto
error
;
}
}
p_sys
->
i_no_data
=
0
;
p_sys
->
b_received_data
=
VLC_FALSE
;
/* Read the complete SDP file */
/* Read the complete SDP file */
i_sdp
=
0
;
i_sdp
=
0
;
...
@@ -382,8 +388,15 @@ static int SDPDemux( input_thread_t * p_input )
...
@@ -382,8 +388,15 @@ static int SDPDemux( input_thread_t * p_input )
if
(
media_client_read
(
p_sys
->
mc
,
&
p_es
,
&
p_frame
,
500
)
)
if
(
media_client_read
(
p_sys
->
mc
,
&
p_es
,
&
p_frame
,
500
)
)
{
{
msg_Dbg
(
p_input
,
"no data"
);
msg_Dbg
(
p_input
,
"no data"
);
p_sys
->
i_no_data
++
;
if
(
p_sys
->
b_received_data
&&
p_sys
->
i_no_data
>
5
)
{
return
0
;
}
return
1
;
return
1
;
}
}
p_sys
->
b_received_data
=
VLC_TRUE
;
p_sys
->
i_no_data
=
0
;
if
(
p_es
==
NULL
)
if
(
p_es
==
NULL
)
{
{
...
@@ -554,11 +567,11 @@ static int EsDecoderSend ( input_thread_t * p_input,
...
@@ -554,11 +567,11 @@ static int EsDecoderSend ( input_thread_t * p_input,
p_input
->
stream
.
p_selected_program
,
p_input
->
stream
.
p_selected_program
,
tk
->
i_timestamp
*
9
/
100
);
tk
->
i_timestamp
*
9
/
100
);
}
}
#if 0
msg_Dbg( p_input, "codec=%s frame pts=%lld dts=%lld",
msg_Dbg( p_input, "codec=%s frame pts=%lld dts=%lld",
p_es->psz_codec,
p_es->psz_codec,
tk->p_pes->i_pts, tk->p_pes->i_dts );
tk->p_pes->i_pts, tk->p_pes->i_dts );
#endif
input_DecodePES
(
tk
->
es
->
p_decoder_fifo
,
tk
->
p_pes
);
input_DecodePES
(
tk
->
es
->
p_decoder_fifo
,
tk
->
p_pes
);
tk
->
p_pes
=
NULL
;
tk
->
p_pes
=
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