Issue in finding audio format using typefind in gstreamer
I am writing a gstreamer based application to stream audio. In which, I am trying to find the format of the audio using typefind element in the gstreamer. But, it is not finding the format of the audio properly. For example., If I give .ac3 audio as input to the pipeline, it is finding the audio format as .dts. When I run the pipeline for mutiple times., say 10 times, it found the input audio format as .dts for 8 times and .ac3 for 2 times. Suggest me a solution for this issue.