<!doctype html public "-//W3C//DTD W3 HTML//EN">
<html><head><style type="text/css"><!--
blockquote, dl, ul, ol, li { padding-top: 0 ; padding-bottom: 0 }
 --></style><title>Re: [Live-devel] AMRInterleaver has MIMEType()
&quot;binary/oct</title></head><body>
<blockquote type="cite" cite>&nbsp;I'm unable to receive AMR audio
using InitiateByMediaType( &quot;audio/AMR&quot;). The reason is
readSource(), which is AMRInterleaver in this case, has no MIMEType()
redefined. It returns a generic type,&nbsp;something
like&nbsp;&quot;binary/octed-stream&quot; instead
&quot;audio/AMR&quot;, and function fails&nbsp;at this
line&nbsp;:</blockquote>
<blockquote type="cite" cite>&nbsp;</blockquote>
<blockquote type="cite" cite>&nbsp;</blockquote>
<blockquote type="cite" cite>// Make sure the source's MIME type is
one that we handle:<br>
00482&nbsp;&nbsp;&nbsp;&nbsp; if (strcmp(<a
href=
"http://www.live555.com/liveMedia/doxygen/html/AVIFileSink_8cpp.html#25e0e015bb23ec5ef03f7e9b9be9b7f4"><span
></span>subsession</a>-&gt;<a
href=
"http://www.live555.com/liveMedia/doxygen/html/classMediaSubsession.html#98fd05e720ca289f4f6f68ad86ec3d37"><span
></span>readSource</a>()-&gt;<a
href=
"http://www.live555.com/liveMedia/doxygen/html/classMediaSource.html#3e7802f6dbeb9da5adde539b6c1410e5"><span
></span>MIMEtype</a>(), mimeType) != 0) {<br>
00483&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (!wasAlreadyInitiated) <a
href=
"http://www.live555.com/liveMedia/doxygen/html/AVIFileSink_8cpp.html#25e0e015bb23ec5ef03f7e9b9be9b7f4"><span
></span>subsession</a>-&gt;<a
href=
"http://www.live555.com/liveMedia/doxygen/html/classMediaSubsession.html#d39152d0b5807cd59fb345b4308c6be5"><span
></span>deInitiate</a>();<br>
00484&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; continue;<br>
</blockquote>
<blockquote type="cite" cite>Of course, I'm not sure that I'm doing
everything ok, but it looks like a bug to me.</blockquote>
<div><br></div>
<div>Yes, you're right - we were failing to redefine the
&quot;MIMEtype()&quot; virtual function for &quot;AMRAudioSource&quot;
(of which &quot;AMRDeinterleaver&quot; is a subclass).</div>
<div><br></div>
<div>This will be fixed in the next release of the code.</div>
<x-sigsep><pre>-- 
</pre></x-sigsep>
<div><br>
Ross Finlayson<br>
Live Networks, Inc.<br>
http://www.live555.com/</div>
</body>
</html>