diff options
author | brijesh.singh <brijesh.singh@24075187-2e39-4e88-bbb8-bc8aa768f540> | 2011-03-12 17:00:29 +0000 |
---|---|---|
committer | brijesh.singh <brijesh.singh@24075187-2e39-4e88-bbb8-bc8aa768f540> | 2011-03-12 17:00:29 +0000 |
commit | 77218d84fc03cc5a01a44fca6b9e4983bd1ac21e (patch) | |
tree | 95f4154acc1e06cb2d1e45ba55af1b43ecc3e562 | |
parent | 4863b1b0a492c356cab9ad5a0015faf99b577176 (diff) |
If upstream is sending NEW_SEGMENT then initilize totalDuration with this information.
Note: earlier we assumed that totalDuration will always start from 0 (or first buffer will have valid timestamp) but this may not be true with
transport stream demuxer. So its safe to use NEW_SEGMENT information all the time.
git-svn-id: https://gstreamer.ti.com/svn/gstreamer_ti/trunk@920 24075187-2e39-4e88-bbb8-bc8aa768f540
-rw-r--r-- | gstreamer_ti/ti_build/ticodecplugin/src/gstticommonutils.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gstreamer_ti/ti_build/ticodecplugin/src/gstticommonutils.c b/gstreamer_ti/ti_build/ticodecplugin/src/gstticommonutils.c index f0a223a..71f83fe 100644 --- a/gstreamer_ti/ti_build/ticodecplugin/src/gstticommonutils.c +++ b/gstreamer_ti/ti_build/ticodecplugin/src/gstticommonutils.c @@ -394,6 +394,7 @@ void gst_ti_parse_newsegment(GstEvent **event, GstSegment *segment, gst_segment_set_newsegment(segment, update, rate, fmt, start, stop, position); + *totalDuration = start; } /* Recieved event format is byte format - we need convert in time format */ |