summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gst/isomp4/qtdemux.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gst/isomp4/qtdemux.c b/gst/isomp4/qtdemux.c
index 3c4ec5182..cc408939c 100644
--- a/gst/isomp4/qtdemux.c
+++ b/gst/isomp4/qtdemux.c
@@ -991,10 +991,12 @@ typedef struct
} FindData;
static gint
-find_func (QtDemuxSample * s1, guint64 * media_time, gpointer user_data)
+find_func (QtDemuxSample * s1, gint64 * media_time, gpointer user_data)
{
- if (s1->timestamp + s1->pts_offset > *media_time)
+ if ((gint64) s1->timestamp + s1->pts_offset > *media_time)
return 1;
+ if ((gint64) s1->timestamp + s1->pts_offset == *media_time)
+ return 0;
return -1;
}