[vlc-commits] RTP: hack to make the raw audio decoder happy

Rémi Denis-Courmont git at videolan.org
Tue Mar 27 20:24:52 CEST 2012


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Mar 27 21:24:39 2012 +0300| [9ddd70f711e163499e68839616ebc495aef2c30a] | committer: Rémi Denis-Courmont

RTP: hack to make the raw audio decoder happy

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9ddd70f711e163499e68839616ebc495aef2c30a
---

 modules/access/rtp/rtp.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/modules/access/rtp/rtp.c b/modules/access/rtp/rtp.c
index 6cb8927..fa87dfc 100644
--- a/modules/access/rtp/rtp.c
+++ b/modules/access/rtp/rtp.c
@@ -33,6 +33,7 @@
 #include <vlc_network.h>
 #include <vlc_plugin.h>
 #include <vlc_dialog.h>
+#include <vlc_aout.h> /* aout_FormatPrepare() */
 
 #include "rtp.h"
 #ifdef HAVE_SRTP
@@ -416,6 +417,8 @@ static int Control (demux_t *demux, int i_query, va_list args)
 
 void *codec_init (demux_t *demux, es_format_t *fmt)
 {
+    if (fmt->i_cat == AUDIO_ES)
+        aout_FormatPrepare (&fmt->audio);
     return es_out_Add (demux->out, fmt);
 }
 



More information about the vlc-commits mailing list