<br><br><div class="gmail_quote">On Mon, Oct 4, 2010 at 5:27 AM, cristiurban <span dir="ltr"><<a href="mailto:cristianurban86@gmail.com">cristianurban86@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
I had use openmax in some of my applications and I want to see if I am doing<br>
wrong or indeed it is a bug.<br>
I have two simple applications that decodes mp3 files : in first app I use<br>
the "mad" element for the decoder in my pipeline. Using threads , once I<br>
start the application the thread starts and begins to get the current time<br>
of stream ( I use "gst_element_query_position (pipeline, &fmt, &pos)" then<br>
with printf I display the current time on my output (like this <printf<br>
("timestamp: %" , GST_TIME_FORMAT, GST_TIME_ARGS (pos));>. It works fine,<br>
but I put a sleep(1) in my thread to display once every 1 second.<br>
The second application, same thing but as a decoder I use "nv_omx_mp3dec"<br>
element. Once I compile (no errors) and start the application, I get the<br>
current time always zero.<br>
If anyone has the same problem or check if this is wrong and it works ,<br>
please i would like to know.<br><br></blockquote><div><br></div><div>Could you give the pipeline you are using in either case? You may need an mp3parse before the decoder (if you don't already have one).</div><div><br>
</div><div>BR,</div><div>-R</div><div> </div></div><br>