mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 04:31:06 +00:00
Ohmy, didnt anyone notice? this is horribly broken
Original commit message from CVS: Ohmy, didnt anyone notice? this is horribly broken
This commit is contained in:
parent
cde2026bb0
commit
d33e6afa2f
2 changed files with 8 additions and 8 deletions
|
@ -365,10 +365,10 @@ gst_v4lmjpegsrc_get (GstPad *pad)
|
|||
return NULL;
|
||||
GST_BUFFER_DATA(buf) = gst_v4lmjpegsrc_get_buffer(v4lmjpegsrc, num);
|
||||
if (!v4lmjpegsrc->first_timestamp)
|
||||
v4lmjpegsrc->first_timestamp = v4lmjpegsrc->bsync.timestamp.tv_sec * 1000000 +
|
||||
v4lmjpegsrc->bsync.timestamp.tv_usec;
|
||||
GST_BUFFER_TIMESTAMP(buf) = v4lmjpegsrc->bsync.timestamp.tv_sec * 1000000 +
|
||||
v4lmjpegsrc->bsync.timestamp.tv_usec - v4lmjpegsrc->first_timestamp;
|
||||
v4lmjpegsrc->first_timestamp = v4lmjpegsrc->bsync.timestamp.tv_sec * GST_SECOND +
|
||||
v4lmjpegsrc->bsync.timestamp.tv_usec * GST_SECOND/1000000;
|
||||
GST_BUFFER_TIMESTAMP(buf) = v4lmjpegsrc->bsync.timestamp.tv_sec * GST_SECOND +
|
||||
v4lmjpegsrc->bsync.timestamp.tv_usec - v4lmjpegsrc->first_timestamp * GST_SECOND/1000000;
|
||||
|
||||
return buf;
|
||||
}
|
||||
|
|
|
@ -464,10 +464,10 @@ gst_v4lsrc_get (GstPad *pad)
|
|||
GST_BUFFER_SIZE(buf) = v4lsrc->buffer_size;
|
||||
|
||||
if (!v4lsrc->first_timestamp)
|
||||
v4lsrc->first_timestamp = v4lsrc->timestamp_soft_sync[num].tv_sec * 1000000 +
|
||||
v4lsrc->timestamp_soft_sync[num].tv_usec;
|
||||
GST_BUFFER_TIMESTAMP(buf) = v4lsrc->timestamp_soft_sync[num].tv_sec * 1000000 +
|
||||
v4lsrc->timestamp_soft_sync[num].tv_usec - v4lsrc->first_timestamp;
|
||||
v4lsrc->first_timestamp = v4lsrc->timestamp_soft_sync[num].tv_sec * GST_SECOND +
|
||||
v4lsrc->timestamp_soft_sync[num].tv_usec * GST_SECOND/1000000;
|
||||
GST_BUFFER_TIMESTAMP(buf) = v4lsrc->timestamp_soft_sync[num].tv_sec * GST_SECOND +
|
||||
v4lsrc->timestamp_soft_sync[num].tv_usec - v4lsrc->first_timestamp * GST_SECOND/1000000;
|
||||
|
||||
return buf;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue