mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
Don't issue a timestamp unless we have a PTS.
Original commit message from CVS: Don't issue a timestamp unless we have a PTS.
This commit is contained in:
parent
403639e252
commit
76158e905a
2 changed files with 10 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2004-01-14 Jan Schmidt <thaytan@mad.scientist.com>
|
||||
|
||||
* ext/mpeg2dec/gstmpeg2dec.c:
|
||||
Don't issue a timestamp unless we tagged the frame
|
||||
with a PTS.
|
||||
|
||||
2004-01-14 Benjamin Otte <in7y118@public.uni-hamburg.de>
|
||||
|
||||
* gst-libs/gst/play/gstplay.c: (gst_play_tick_callback):
|
||||
|
|
|
@ -532,6 +532,9 @@ gst_mpeg2dec_chain (GstPad *pad, GstData *_data)
|
|||
break;
|
||||
case STATE_SLICE:
|
||||
slice = TRUE;
|
||||
#if MPEG2_RELEASE >= MPEG2_VERSION (0, 4, 0)
|
||||
case STATE_INVALID_END:
|
||||
#endif
|
||||
case STATE_END:
|
||||
{
|
||||
GstBuffer *outbuf = NULL;
|
||||
|
@ -563,7 +566,7 @@ gst_mpeg2dec_chain (GstPad *pad, GstData *_data)
|
|||
if (picture->flags & PIC_FLAG_PTS) {
|
||||
GstClockTime time = MPEGTIME_TO_GSTTIME (picture->pts);
|
||||
#else
|
||||
if (1) {
|
||||
if (picture->flags & PIC_FLAG_TAGS) {
|
||||
GstClockTime time = MPEGTIME_TO_GSTTIME ((guint64) picture->tag2 << 32 | picture->tag);
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue