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
30410626
Commit
30410626
authored
Nov 07, 2003
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* rtp: removed a annoying debug message
* announce.c: fixed a warning.
parent
2d0e1f20
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
25 deletions
+22
-25
modules/stream_out/announce.c
modules/stream_out/announce.c
+19
-21
modules/stream_out/rtp.c
modules/stream_out/rtp.c
+3
-4
No files found.
modules/stream_out/announce.c
View file @
30410626
...
...
@@ -24,10 +24,10 @@
/*****************************************************************************
* Preamble
*****************************************************************************/
#include <errno.h>
/* ENOMEM */
#include <stdlib.h>
/* free() */
#include <errno.h>
/* ENOMEM */
#include <stdio.h>
/* sprintf() */
#include <string.h>
/* strerror() */
#include <vlc/vlc.h>
#include <vlc/sout.h>
...
...
@@ -396,8 +396,7 @@ void sout_SAPSend( sout_instance_t *p_sout, sap_session_t * p_sap )
free
(
psz_head
);
}
#ifdef HAVE_SLP_H
/*****************************************************************************
* sout_SLPBuildName: Builds a service name according to SLP standard
*****************************************************************************/
...
...
@@ -412,24 +411,23 @@ static char * sout_SLPBuildName(char *psz_url,char *psz_name)
psz_service
=
(
char
*
)
malloc
(
i_size
*
sizeof
(
char
));
snprintf
(
psz_service
,
i_size
,
snprintf
(
psz_service
,
i_size
,
"service:vlc.services.videolan://udp:@%s"
,
psz_url
);
/* How piggy ! */
psz_service
[
i_size
]
=
'\0'
;
/* Just to make sure */
psz_service
[
i_size
]
=
'\0'
;
/* Just to make sure */
return
psz_service
;
}
/*****************************************************************************
* sout_SLPReport: Reporting function. Unused at the moment but needed
*****************************************************************************/
#ifdef HAVE_SLP_H
static
void
sout_SLPReport
(
SLPHandle
slp_handle
,
SLPError
slp_error
,
void
*
cookie
)
{
}
}
#endif
/*****************************************************************************
...
...
@@ -439,19 +437,19 @@ int sout_SLPReg( sout_instance_t *p_sout, char * psz_url,
char
*
psz_name
)
{
#ifdef HAVE_SLP_H
SLPHandle
slp_handle
;
SLPHandle
slp_handle
;
SLPError
slp_res
;
char
*
psz_service
=
sout_SLPBuildName
(
psz_url
,
psz_name
);
if
(
SLPOpen
(
NULL
,
SLP_FALSE
,
&
slp_handle
)
!=
SLP_OK
)
{
msg_Warn
(
p_sout
,
"Unable to initialize SLP"
);
return
-
1
;
}
}
msg_Info
(
p_sout
,
"Registering %s (name: %s) in SLP"
,
psz_service
,
psz_name
);
slp_res
=
SLPReg
(
slp_handle
,
psz_service
,
SLP_LIFETIME_MAXIMUM
,
...
...
@@ -460,7 +458,7 @@ int sout_SLPReg( sout_instance_t *p_sout, char * psz_url,
SLP_TRUE
,
sout_SLPReport
,
NULL
);
if
(
slp_res
!=
SLP_OK
)
{
msg_Warn
(
p_sout
,
"Error while registering service: %i"
,
slp_res
);
...
...
@@ -483,24 +481,24 @@ int sout_SLPDereg( sout_instance_t *p_sout, char * psz_url,
{
#ifdef HAVE_SLP_H
SLPHandle
slp_handle
;
SLPHandle
slp_handle
;
SLPError
slp_res
;
char
*
psz_service
=
sout_SLPBuildName
(
psz_url
,
psz_name
);
if
(
SLPOpen
(
NULL
,
SLP_FALSE
,
&
slp_handle
)
!=
SLP_OK
)
{
msg_Warn
(
p_sout
,
"Unable to initialize SLP"
);
return
-
1
;
}
}
msg_Info
(
p_sout
,
"Unregistering %s from SLP"
,
psz_service
);
slp_res
=
SLPDereg
(
slp_handle
,
psz_service
,
sout_SLPReport
,
NULL
);
if
(
slp_res
!=
SLP_OK
)
{
msg_Warn
(
p_sout
,
"Error while registering service: %i"
,
slp_res
);
...
...
@@ -510,6 +508,6 @@ int sout_SLPDereg( sout_instance_t *p_sout, char * psz_url,
return
0
;
#else
/* This function should never be called if this is false */
return
-
1
;
return
-
1
;
#endif
}
modules/stream_out/rtp.c
View file @
30410626
...
...
@@ -2,7 +2,7 @@
* rtp.c
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id: rtp.c,v 1.
5 2003/11/07 17:43:42
fenrir Exp $
* $Id: rtp.c,v 1.
6 2003/11/07 18:32:24
fenrir Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
...
...
@@ -764,9 +764,8 @@ static int AccessOutGrabberWrite( sout_access_out_t *p_access, sout_buffer_t *p_
{
sout_stream_t
*
p_stream
=
(
sout_stream_t
*
)
p_access
->
p_sys
;
fprintf
(
stderr
,
"received buffer size=%d
\n
"
,
p_buffer
->
i_size
);
//fprintf( stderr, "received buffer size=%d\n", p_buffer->i_size );
//
while
(
p_buffer
)
{
sout_buffer_t
*
p_next
;
...
...
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