After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 790170 - avwait: Added passing-through and dropping signals
avwait: Added passing-through and dropping signals
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
unspecified
Other All
: Normal enhancement
: 1.13.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2017-11-10 14:17 UTC by Vivia Nikolaidou
Modified: 2017-12-08 19:58 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
avwait: Added passing-through and dropping signals (8.29 KB, patch)
2017-11-10 14:17 UTC, Vivia Nikolaidou
none Details | Review
avwait: Added passing-through and dropping signals (8.09 KB, patch)
2017-11-13 10:57 UTC, Vivia Nikolaidou
none Details | Review
avwait: Added passing-through and dropping signals (10.85 KB, patch)
2017-11-16 17:40 UTC, Vivia Nikolaidou
none Details | Review
avwait: Added passing-through and dropping signals (10.92 KB, patch)
2017-11-16 18:22 UTC, Vivia Nikolaidou
none Details | Review
avwait: Added "avwait-status" element message (11.07 KB, patch)
2017-12-08 19:32 UTC, Vivia Nikolaidou
committed Details | Review

Description Vivia Nikolaidou 2017-11-10 14:17:26 UTC
See commit message
Comment 1 Vivia Nikolaidou 2017-11-10 14:17:30 UTC
Created attachment 363346 [details] [review]
avwait: Added passing-through and dropping signals

passing-through is emitted when avwait starts passing through data,
dropping is emitted when avwait stops pasing through data (e.g. because
target-timecode and end-timecode respectively have been reached)
Comment 2 Vivia Nikolaidou 2017-11-10 15:38:48 UTC
Maybe one signal with a boolean property instead of two different ones? I'm not too sure myself either.
Comment 3 Vivia Nikolaidou 2017-11-13 10:57:03 UTC
Created attachment 363490 [details] [review]
avwait: Added passing-through and dropping signals

passing-through is emitted when avwait starts passing through data,
dropping is emitted when avwait stops pasing through data (e.g. because
target-timecode and end-timecode respectively have been reached)
Comment 4 Vivia Nikolaidou 2017-11-13 10:59:00 UTC
Updated the patch to compile after latest avwait fixes, and also removed a line that sent out a wrong notification.
Comment 5 Tim-Philipp Müller 2017-11-13 11:05:57 UTC
As mentioned on IRC, maybe these should be messages instead if there's no need to handle anything synchronously?
Comment 6 Vivia Nikolaidou 2017-11-16 17:40:22 UTC
Created attachment 363853 [details] [review]
avwait: Added passing-through and dropping signals

passing-through is emitted when avwait starts passing through data,
dropping is emitted when avwait stops pasing through data (e.g. because
target-timecode and end-timecode respectively have been reached)
Comment 7 Vivia Nikolaidou 2017-11-16 17:43:38 UTC
Turned them into messages, and also fixed some bugs related to changing the "mode" setting mid-flight (it confused avwait and sometimes we had an audible click).
Comment 8 Vivia Nikolaidou 2017-11-16 18:22:50 UTC
Created attachment 363858 [details] [review]
avwait: Added passing-through and dropping signals

passing-through is emitted when avwait starts passing through data,
dropping is emitted when avwait stops pasing through data (e.g. because
target-timecode and end-timecode respectively have been reached)
Comment 9 Vivia Nikolaidou 2017-12-08 19:32:48 UTC
Created attachment 365271 [details] [review]
avwait: Added "avwait-status" element message

"avwait-status" is posted when avwait starts or stops passing through
data (e.g. because target-timecode and end-timecode respectively have
been reached). The attached structure includes a "dropping" boolean (set
to TRUE if we are currently dropping data, FALSE otherwise), and a
"running-time" GST_CLOCK_TIME which contains the running time of the
change.
Comment 10 Vivia Nikolaidou 2017-12-08 19:33:22 UTC
Comment on attachment 363858 [details] [review]
avwait: Added passing-through and dropping signals

Obsoleted previous patch, but the only difference is really the commit message. :)
Comment 11 Vivia Nikolaidou 2017-12-08 19:55:41 UTC
Review of attachment 365271 [details] [review]:

Looks good now.