gstreamer/libs/gst/base
Sebastian Dröge b9a4a2a952 basesink: Update start time when losing state only if we were in PLAYING
If we were in PAUSED, the current clock time and base time don't have much to
do with the running time anymore as the clock might have advanced while we
were PAUSED. The system clock does that for example, audio clocks often don't.

Updating the start time in PAUSED will cause a) the wrong position to be
reported, b) step events to step not just the requested amount but the amount
of time we spent in PAUSED. The start time should only ever be updated when
going from PLAYING to PAUSED to remember the current running time (to be able
to compensate later when going to PLAYING for the clock time advancing while
PAUSED), not when we are already in PAUSED.

Based on a patch by Kishore Arepalli <kishore.arepalli@gmail.com>

The updating of the start time when the state is lost was added in commit
ba943a82c0 to fix the position reporting when
the state is lost. This still works correctly after this change.

https://bugzilla.gnome.org/show_bug.cgi?id=739289
2016-06-13 20:20:44 +02:00
..
.gitignore Update a bunch of gitignores to clean up my git status output 2009-01-23 16:08:40 +00:00
base.h base: include flowcombiner header from base.h 2014-05-27 09:55:27 +01:00
gstadapter.c adapter: Rename functions and implement new functions, update test 2016-06-10 09:49:33 +03:00
gstadapter.h adapter: Rename functions and implement new functions, update test 2016-06-10 09:49:33 +03:00
gstbaseparse.c baseparse: Make sure DISCONT flags are properly propagated 2016-06-07 09:42:39 +02:00
gstbaseparse.h core: Add g_autoptr() support to all types 2015-12-14 12:06:55 -05:00
gstbasesink.c basesink: Update start time when losing state only if we were in PLAYING 2016-06-13 20:20:44 +02:00
gstbasesink.h core: Add g_autoptr() support to all types 2015-12-14 12:06:55 -05:00
gstbasesrc.c basesink/src: Post an error message if ::start() fails 2016-05-15 11:04:25 +03:00
gstbasesrc.h core: Add g_autoptr() support to all types 2015-12-14 12:06:55 -05:00
gstbasetransform.c Use new GST_ENABLE_EXTRA_CHECKS #define 2015-10-21 14:31:56 +03:00
gstbasetransform.h core: Add g_autoptr() support to all types 2015-12-14 12:06:55 -05:00
gstbitreader-docs.h docs: align the comments correctly with the declaration in bitreader docs 2013-01-29 15:43:05 +00:00
gstbitreader.c gi: Skip allocator of non-boxed structure 2015-06-13 13:42:58 -04:00
gstbitreader.h Fix FSF address 2012-11-03 20:44:48 +00:00
gstbytereader-docs.h Fix FSF address 2012-11-03 20:44:48 +00:00
gstbytereader.c gi: Skip allocator of non-boxed structure 2015-06-13 13:42:58 -04:00
gstbytereader.h bytereader: add gst_byte_reader_peek_sub_reader() and _get_sub_reader() 2014-08-15 10:03:26 +01:00
gstbytewriter-docs.h docs: Fix typos in function/object descriptions 2013-12-07 17:11:12 +00:00
gstbytewriter.c gi: Skip allocator of non-boxed structure 2015-06-13 13:42:58 -04:00
gstbytewriter.h docs: remove dummy function declarations with G_INLINE_FUNCTION for gtk-doc 2015-11-09 17:59:16 +00:00
gstcollectpads.c collectpads: Assume PTS is equal DTS if PTS is missing 2016-03-24 14:29:47 +02:00
gstcollectpads.h core: Add g_autoptr() support to all types 2015-12-14 12:06:55 -05:00
gstdataqueue.c dataqueue: Fix gst_data_queue_new() description. 2014-11-06 21:09:09 +11:00
gstdataqueue.h core: Add g_autoptr() support to all types 2015-12-14 12:06:55 -05:00
gstflowcombiner.c flowcombiner: add debug category 2016-05-05 18:50:05 +01:00
gstflowcombiner.h core: Add g_autoptr() support to all types 2015-12-14 12:06:55 -05:00
gstindex.c doc: Remove gstindex from doc comment 2015-06-13 13:55:27 -04:00
gstindex.h index: mark two structs that don't have abi padding 2015-09-28 16:23:41 +02:00
gstmemindex.c Fix FSF address 2012-11-03 20:44:48 +00:00
gstpushsrc.c docs: remove outdated and pointless 'Last reviewed' lines from docs 2014-04-26 21:21:51 +01:00
gstpushsrc.h pushsrc: fix minor typos in header 2016-02-12 20:50:57 +00:00
gstqueuearray.c queuearray: allow storing of structs in addition to pointers 2015-07-04 11:03:51 +01:00
gstqueuearray.h queuearray: allow storing of structs in addition to pointers 2015-07-04 11:03:51 +01:00
gsttypefindhelper.c typefindhelper: Fix gobject-introspection warning about invalid transfer annotation 2016-04-20 11:45:28 +03:00
gsttypefindhelper.h base: use correct syntax in documentation more consistently 2014-06-06 15:09:21 -04:00
Makefile.am g-i: pass compiler env to g-ir-scanner 2016-05-24 00:40:27 +01:00
README add short/long description docs to base classes add pushsrc to the docs remove consolidated doc fragments 2005-08-03 13:30:18 +00:00

Base classes
------------

GstBaseSink
  FIXME: not much point making it operate in pull mode as a generic
  base class I guess...