mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
typefind: use GST_BUFFER_OFFSET_NONE for buffer offset
This commit is contained in:
parent
1cf733f282
commit
691bd8bd87
1 changed files with 2 additions and 2 deletions
|
@ -524,7 +524,7 @@ start_typefinding (GstTypeFindElement * typefind)
|
|||
GST_OBJECT_LOCK (typefind);
|
||||
if (typefind->caps)
|
||||
gst_caps_replace (&typefind->caps, NULL);
|
||||
typefind->initial_offs = (guint64) - 1;
|
||||
typefind->initial_offs = GST_BUFFER_OFFSET_NONE;
|
||||
GST_OBJECT_UNLOCK (typefind);
|
||||
|
||||
typefind->mode = MODE_TYPEFIND;
|
||||
|
@ -841,7 +841,7 @@ gst_type_find_element_chain (GstPad * pad, GstObject * parent,
|
|||
case MODE_TYPEFIND:
|
||||
{
|
||||
GST_OBJECT_LOCK (typefind);
|
||||
if (typefind->initial_offs == GST_CLOCK_TIME_NONE)
|
||||
if (typefind->initial_offs == GST_BUFFER_OFFSET_NONE)
|
||||
typefind->initial_offs = GST_BUFFER_OFFSET (buffer);
|
||||
gst_adapter_push (typefind->adapter, buffer);
|
||||
GST_OBJECT_UNLOCK (typefind);
|
||||
|
|
Loading…
Reference in a new issue