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 780367 - decklinkvideosrc: Add no-signal property
decklinkvideosrc: Add no-signal property
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
git master
Other Linux
: Normal enhancement
: 1.11.90
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2017-03-21 17:38 UTC by Georg Lippitsch
Modified: 2017-03-22 13:19 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
[patch] decklinkvideosrc: Add no-signal property (2.41 KB, patch)
2017-03-21 17:38 UTC, Georg Lippitsch
none Details | Review
[patch] decklinkvideosrc: Add no-signal property (2.39 KB, patch)
2017-03-22 12:59 UTC, Georg Lippitsch
committed Details | Review

Description Georg Lippitsch 2017-03-21 17:38:45 UTC
Created attachment 348432 [details] [review]
[patch] decklinkvideosrc: Add no-signal property

Expose the no_signal variable as property
Comment 1 Tim-Philipp Müller 2017-03-21 17:50:49 UTC
Any particular reason to make it a property? I think there should be a status message instead. (Or does that exist already?)
Comment 2 Georg Lippitsch 2017-03-21 21:49:26 UTC
Currently, a warning or info is posted when a signal is lost or connected.
(With GST_ELEMENT_WARNING or GST_ELEMENT_INFO)

But there is no way to query the current signal status if the message was missed for some reason. If someone wants to know the signal status at some point of time, I find a property much more convenient than installing a message handler.
Comment 3 Sebastian Dröge (slomo) 2017-03-22 12:36:50 UTC
Comment on attachment 348432 [details] [review]
[patch] decklinkvideosrc: Add no-signal property

The patch looks correct, but it seems better to call this property positive. "have-signal" or similar.
Comment 4 Georg Lippitsch 2017-03-22 12:59:51 UTC
Created attachment 348481 [details] [review]
[patch] decklinkvideosrc: Add no-signal property
Comment 5 Tim-Philipp Müller 2017-03-22 13:11:29 UTC
> Currently, a warning or info is posted when a signal is lost or connected.
> (With GST_ELEMENT_WARNING or GST_ELEMENT_INFO)

I think this should be some other kind of message (status/progress message).
 
> But there is no way to query the current signal status if the message was
> missed for some reason. If someone wants to know the signal status at some
> point of time, I find a property much more convenient than installing a
> message handler.

That is true. But this is all API for application developers. They know in advance whether they will be interested in this or not, and if they are, they will simply look for the messages and track state this way. It's not like the code suddenly changes its mind after running for a while :)
Comment 6 Sebastian Dröge (slomo) 2017-03-22 13:17:58 UTC
commit 7ee593e493b8d5a9b6ad70a62846a3610c3c2783
Author: Georg Lippitsch <georg.lippitsch@gmx.at>
Date:   Tue Mar 21 18:16:52 2017 +0100

    decklinkvideosrc: Add read-only "signal" property
    
    https://bugzilla.gnome.org/show_bug.cgi?id=780367