Tim, <div><br></div><div>I'm new to this piece of gstreamer -- to confirm, the below is what I did. Is this what you intended?</div><div><br></div><div><br></div><div>//in the _setcaps() function. (only the related code is copied)</div>
<div><br></div><div>name = gst_structure_get_name (structure);</div><div>if (!strcmp (name, "audio/mpeg") || !strcmp (name, "audio/x-mpeg")) {</div><div><div> gst_structure_get_int (structure, "mpegversion", &mpegversion);</div>
<div> switch (mpegversion) {</div></div><div><div> case 2:</div><div> case 4:</div><div> {</div><div> // I added this. Is this as intended?</div><div> gboolean framed;</div><div> gst_structure_get_boolean (structure, "framed", &framed);</div>
<div> if (!framed)</div><div> {</div><div> return FALSE;</div><div> }</div><div> // end added stuff</div><div> }</div><div> }</div>}</div><div><br></div><div>Doing this, I get no audio playing -- so I'm guessing that's not what you intended :)</div>
<div><br></div><div>Thanks,</div><div>Eric</div><div><br></div><div><br><div class="gmail_quote">On Thu, Jun 21, 2012 at 2:21 PM, Tim-Philipp Müller <span dir="ltr"><<a href="mailto:t.i.m@zen.co.uk" target="_blank">t.i.m@zen.co.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Thu, 2012-06-21 at 14:08 -0400, Eric Montellese wrote:<br>
<br>
> I can get the id3demux element out of there by removing the id3 tags<br>
> from the files, but the placement or not of the aacparse element is a<br>
> mystery.<br>
<br>
</div>Try changing the pad template of your decodersink so that it only<br>
accepts<br>
<br>
audio/mpeg,mpegversion={2,4},framed=true (other fields the same)<br>
<br>
and<br>
<br>
audio/mpeg,mpegversion=1,parsed=true (other fields the same)<br>
<div class="HOEnZb"><div class="h5"><br>
Cheers<br>
-Tim<br>
<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</div></div></blockquote></div><br></div>