1
0
Fork 0
mirror of https://github.com/albfan/miraclecast.git synced 2025-02-15 04:42:06 +00:00

miracle-wfdctl: do not launch gstreamer if DO_NOT_LAUNCH_GST environment

variable is set while miracle-wfdctl running
This commit is contained in:
Derek Dai 2017-02-27 11:38:59 +08:00
parent 99497fbb55
commit 5a3f746d4d
No known key found for this signature in database
GPG key ID: E109CC97553EF009

View file

@ -633,6 +633,10 @@ static int wfd_out_session_post_handle_play(sd_event_source *source,
sd_event_source_unref(source);
wfd_out_session(s)->gst_launch_source = NULL;
if(getenv("DO_NOT_LAUNCH_GST")) {
return 0;
}
r = wfd_out_session_launch_gst(s, &gst);
if(0 > r) {
return r;