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
88ae87b2
Commit
88ae87b2
authored
Nov 17, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
RTMP: tag some of the obvious bugs
parent
600ceaf9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
0 deletions
+5
-0
modules/access/rtmp/access.c
modules/access/rtmp/access.c
+3
-0
modules/access/rtmp/rtmp_amf_flv.c
modules/access/rtmp/rtmp_amf_flv.c
+1
-0
modules/access_output/rtmp.c
modules/access_output/rtmp.c
+1
-0
No files found.
modules/access/rtmp/access.c
View file @
88ae87b2
...
...
@@ -351,8 +351,10 @@ static ssize_t Read( access_t *p_access, uint8_t *p_buffer, size_t i_len )
if
(
!
p_sys
->
p_thread
->
metadata_received
)
{
/* Wait until enough data is received for extracting metadata */
#warning This is not thread-safe (because block_FifoCount() is not)!
if
(
block_FifoCount
(
p_sys
->
p_thread
->
p_fifo_input
)
<
10
)
{
#warning This is wrong!
msleep
(
100000
);
continue
;
}
...
...
@@ -549,6 +551,7 @@ static void* ThreadControl( vlc_object_t *p_this )
/* Sometimes server close connection too soon */
if
(
p_thread
->
result_connect
)
{
#warning There must be a bug here!
vlc_mutex_lock
(
&
p_thread
->
lock
);
vlc_cond_signal
(
&
p_thread
->
wait
);
vlc_mutex_unlock
(
&
p_thread
->
lock
);
...
...
modules/access/rtmp/rtmp_amf_flv.c
View file @
88ae87b2
...
...
@@ -1277,6 +1277,7 @@ rtmp_handler_invoke( rtmp_control_thread_t *p_thread, rtmp_packet_t *rtmp_packet
msg_Dbg
(
p_thread
,
"key: %s value: %s"
,
string
,
string2
);
if
(
strcmp
(
"code"
,
string
)
==
0
)
{
#warning Locking bugs here.
if
(
strcmp
(
"NetConnection.Connect.Success"
,
string2
)
==
0
)
{
p_thread
->
result_connect
=
0
;
...
...
modules/access_output/rtmp.c
View file @
88ae87b2
...
...
@@ -404,6 +404,7 @@ static void* ThreadControl( vlc_object_t *p_this )
else
{
/* Sometimes server close connection too soon */
#warning Locking bug here.
if
(
p_thread
->
result_connect
)
{
vlc_mutex_lock
(
&
p_thread
->
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