[vlc-devel] commit: So-called "RTSP" VOD: advertise the actual audio frequency ( Rémi Denis-Courmont )
git version control
git at videolan.org
Wed Jul 2 20:04:03 CEST 2008
vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Wed Jul 2 21:04:34 2008 +0300| [98b8aee7f06238157329ebc5b505d6fad34067f7]
So-called "RTSP" VOD: advertise the actual audio frequency
This closes #1657. We have to use the same frequency as the RTP stream
output, otherwise, it's not going to work...
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=98b8aee7f06238157329ebc5b505d6fad34067f7
---
modules/misc/rtsp.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/misc/rtsp.c b/modules/misc/rtsp.c
index c162b18..d590c9a 100644
--- a/modules/misc/rtsp.c
+++ b/modules/misc/rtsp.c
@@ -523,7 +523,7 @@ static int MediaAddES( vod_t *p_vod, vod_media_t *p_media, es_format_t *p_fmt )
break;
case VLC_FOURCC( 'm', 'p', 'g', 'a' ):
p_es->i_payload_type = 14;
- p_es->psz_rtpmap = strdup( "MPA/90000" );
+ asprintf( &p_es->psz_rtpmap, "MPA/%d", p_fmt->audio.i_rate );
break;
case VLC_FOURCC( 'm', 'p', 'g', 'v' ):
p_es->i_payload_type = 32;
@@ -531,7 +531,7 @@ static int MediaAddES( vod_t *p_vod, vod_media_t *p_media, es_format_t *p_fmt )
break;
case VLC_FOURCC( 'a', '5', '2', ' ' ):
p_es->i_payload_type = p_media->i_payload_type++;
- p_es->psz_rtpmap = strdup( "ac3/90000" );
+ asprintf( &p_es->psz_rtpmap, "ac3/%d", p_fmt->audio.i_rate );
break;
case VLC_FOURCC( 'H', '2', '6', '3' ):
p_es->i_payload_type = p_media->i_payload_type++;
More information about the vlc-devel
mailing list