Gstreamer pipeline is not handling shutdown correctly

Steps to reproduce

Initially, corrupted video's lead me to investigate this problem. The videos were failing in inspection, and couldn't be played in any other program.

Currently, and since 1.0, we have been sending EOS messages to the pipeline bus directly. unforatuntely, this seems to end the stream without flushing the buffers and writing the file correctly.

See these manual pages for more info:
http://gstreamer.freedesktop.org/data/doc/gstreamer/head/pwg/html/section-events-definitions.html
http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/section-intro-basics-communication.html

The solution seems to be sending an EOSEvent directly to each source element. This will bubble the event downstream to the sink, where an EOS Message will be emitted on the Pipeline BUS.

Status

Assignee

Adam McKenzie

Reporter

Micah Sutton

Severity

Incorrectly Functioning Without Workaround

Tags (folksonomy)

None

Components

Fix versions

Affects versions

1.1

Priority

Blocker
Configure