gstreamer/gst-libs/gst
Mathieu Duponchelle 5d6b3b60cb gst-discoverer: use state changes instead of ASYNC_DONE.
And monitor no_more_pads.

With live sources such as rtsp, uridecodebin only creates its
child decodebins between PAUSED and PLAYING.

This means that the ASYNC_DONE it posts when getting NO_PREROLL
in its change_state method gets immediately propagated by the
GstBin parent class, as opposed to a situation where a
decodebin has been added to it already, and has posted ASYNC_START.

The proposed solution, instead of simply waiting for ASYNC_DONE,
and finishing prematurely in that case, waits for three conditions
to be true:

* the uridecodebin needs to have emitted no_more_pads
* its current state must be PAUSED if not live, PLAYING otherwise
* There must be no "pending subtitle pads", ie pads where we haven't
  received tags yet.

All these conditions are checked in the message handler, as we
post custom messages on it when we get subtitle tags or no_more_pads.

https://bugzilla.gnome.org/show_bug.cgi?id=783257
2017-05-31 05:10:21 +02:00
..
allocators gst: Clear floating flag in constructor of all GstObject subclasses that are not owned by any parent 2017-05-17 10:40:52 +03:00
app app: mark symbols explicitly for export with GST_EXPORT 2017-05-16 15:22:34 +01:00
audio audioclock: Sink the reference in the constructor 2017-05-17 10:40:52 +03:00
fft fft: mark symbols explicitly for export with GST_EXPORT 2017-05-16 15:22:30 +01:00
pbutils gst-discoverer: use state changes instead of ASYNC_DONE. 2017-05-31 05:10:21 +02:00
riff riff: mark symbols explicitly for export with GST_EXPORT 2017-05-16 15:22:42 +01:00
rtp rtp: mark symbols explicitly for export with GST_EXPORT 2017-05-16 15:22:42 +01:00
rtsp rtsp: mark symbols explicitly for export with GST_EXPORT 2017-05-16 15:22:45 +01:00
sdp sdp: mark symbols explicitly for export with GST_EXPORT 2017-05-16 15:23:08 +01:00
tag tag: mark symbols explicitly for export with GST_EXPORT 2017-05-16 15:23:08 +01:00
video videodecoder: Don't queue frames in TRICKMODE_KEY_UNITS 2017-05-20 17:37:27 +02:00
gettext.h Fix FSF address 2012-11-03 23:05:09 +00:00
glib-compat-private.h Fix FSF address 2012-11-03 23:05:09 +00:00
gst-i18n-app.h tools: add simple command-line gst-play utility for testing purposes 2013-08-16 15:45:23 +01:00
gst-i18n-plugin.h Fix FSF address 2012-11-03 23:05:09 +00:00
Makefile.am rtp: build audio library before rtp 2016-02-16 17:42:44 +02:00
meson.build rtsp: Include GstSdp-1.0.gir when generating the gir 2016-11-10 17:43:38 -03:00