From: Tim-Philipp Müller Date: Wed, 10 Dec 2014 11:16:09 +0000 (+0000) Subject: typefind: use GST_BUFFER_OFFSET_NONE for buffer offset X-Git-Tag: 1.6.1~638 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=691bd8bd87ba2ad0b7c39a8bd312789229828357;p=platform%2Fupstream%2Fgstreamer.git typefind: use GST_BUFFER_OFFSET_NONE for buffer offset --- diff --git a/plugins/elements/gsttypefindelement.c b/plugins/elements/gsttypefindelement.c index 9f85582..37f6cec 100644 --- a/plugins/elements/gsttypefindelement.c +++ b/plugins/elements/gsttypefindelement.c @@ -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);