amldemux: CB2 add more condition to select stream [1/1]

PD#SWPL-58926

Problem:
qtdemux always send video data and no audio data
which leand to element state can not be
changed to pause so video can not be playback

Solution:
add more condition to select stream which
buffer is discont when time position are same

Verify:
AP222

Signed-off-by: zengliang.li <zengliang.li@amlogic.com>
Change-Id: I21ee269ad4fbc2f11ce62ef461ba64c695892178
diff --git a/aml-qtdemux/qtdemux.c b/aml-qtdemux/qtdemux.c
index bc33804..3e0aad2 100644
--- a/aml-qtdemux/qtdemux.c
+++ b/aml-qtdemux/qtdemux.c
@@ -6358,7 +6358,8 @@
     position = stream->time_position;
 
     /* position of -1 is EOS */
-    if (position != GST_CLOCK_TIME_NONE && position < min_time) {
+    if ((position != GST_CLOCK_TIME_NONE && position < min_time) ||
+     || (stream->discont)) {
       min_time = position;
       target_stream = stream;
     }