typefind: minor cosmetic change
authorTim-Philipp Müller <tim@centricular.com>
Wed, 10 Dec 2014 11:17:11 +0000 (11:17 +0000)
committerTim-Philipp Müller <tim@centricular.com>
Wed, 10 Dec 2014 11:17:25 +0000 (11:17 +0000)
No nee to abbrev variab nam here, nicer to read if full.

plugins/elements/gsttypefindelement.c
plugins/elements/gsttypefindelement.h

index 37f6cec..9af1e23 100644 (file)
@@ -524,7 +524,7 @@ start_typefinding (GstTypeFindElement * typefind)
   GST_OBJECT_LOCK (typefind);
   if (typefind->caps)
     gst_caps_replace (&typefind->caps, NULL);
-  typefind->initial_offs = GST_BUFFER_OFFSET_NONE;
+  typefind->initial_offset = GST_BUFFER_OFFSET_NONE;
   GST_OBJECT_UNLOCK (typefind);
 
   typefind->mode = MODE_TYPEFIND;
@@ -560,7 +560,7 @@ stop_typefinding (GstTypeFindElement * typefind)
   buffer = gst_adapter_take_buffer (typefind->adapter, avail);
   GST_BUFFER_PTS (buffer) = pts;
   GST_BUFFER_DTS (buffer) = dts;
-  GST_BUFFER_OFFSET (buffer) = typefind->initial_offs;
+  GST_BUFFER_OFFSET (buffer) = typefind->initial_offset;
   GST_OBJECT_UNLOCK (typefind);
 
   if (!push_cached_buffers) {
@@ -841,8 +841,8 @@ gst_type_find_element_chain (GstPad * pad, GstObject * parent,
     case MODE_TYPEFIND:
     {
       GST_OBJECT_LOCK (typefind);
-      if (typefind->initial_offs == GST_BUFFER_OFFSET_NONE)
-        typefind->initial_offs = GST_BUFFER_OFFSET (buffer);
+      if (typefind->initial_offset == GST_BUFFER_OFFSET_NONE)
+        typefind->initial_offset = GST_BUFFER_OFFSET (buffer);
       gst_adapter_push (typefind->adapter, buffer);
       GST_OBJECT_UNLOCK (typefind);
 
index 7093a82..bf92b4d 100644 (file)
@@ -59,7 +59,7 @@ struct _GstTypeFindElement {
   GList *               cached_events;
   GstCaps *             force_caps;
 
-  guint64              initial_offs;
+  guint64              initial_offset;
   
   /* Only used when driving the pipeline */
   gboolean need_segment;