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 791374 - kmssink: fix kmssink fail to start when not connect display
kmssink: fix kmssink fail to start when not connect display
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
1.12.x
Other Linux
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2017-12-08 06:46 UTC by Haihua Hu
Modified: 2018-11-03 14:16 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
kmssink: fix kmssink fail to start when not connect display (2.33 KB, patch)
2017-12-08 06:46 UTC, Haihua Hu
reviewed Details | Review

Description Haihua Hu 2017-12-08 06:46:04 UTC
Currently kmssink will fail when not connect display to device. Get display connected status from drm connector, drop all buffer when display not connected to make pipeline can run.
Comment 1 Haihua Hu 2017-12-08 06:46:51 UTC
Created attachment 365228 [details] [review]
kmssink: fix kmssink fail to start when not connect display

Get display connected status from drm connector, drop all buffer when display not connected
Comment 2 Nicolas Dufresne (ndufresne) 2017-12-08 13:33:58 UTC
Review of attachment 365228 [details] [review]:

Am I right to think that if the display get connected later, nothing happens ?
Comment 3 Víctor Manuel Jáquez Leal 2017-12-08 14:18:44 UTC
(In reply to Nicolas Dufresne (stormer) from comment #2)
> Review of attachment 365228 [details] [review] [review]:
> 
> Am I right to think that if the display get connected later, nothing happens
> ?

It seems so. Because self->display_connected is only TRUE at _start(), which is called when the sink changes from NULL to READY state.

So, what's the purpose of this patch? keep the pipeline working even if nothing is displayed? why?
Comment 4 Haihua Hu 2017-12-10 03:21:05 UTC
(In reply to Nicolas Dufresne (stormer) from comment #2)
> Review of attachment 365228 [details] [review] [review]:
> 
> Am I right to think that if the display get connected later, nothing happens
> ?

Temporary, nothing happened, if so, we need add reset() to get display parameters when display connection status changed. This patch can only make pipeline working for audio chain.
Comment 5 Nicolas Dufresne (ndufresne) 2017-12-10 14:46:01 UTC
Ok, I'd say this patch is incomplete then. In this form it's not useful. Your app could use fakesink and have some code that detect the display connection.
Comment 6 GStreamer system administrator 2018-11-03 14:16:20 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/issues/639.