1
0
Fork 0
mirror of https://github.com/albfan/miraclecast.git synced 2025-03-09 23:38:56 +00:00

miracle-wfdctl: encoding video stream with gstreamer library instead of

gst-launch-1.0
This commit is contained in:
Derek Dai 2017-03-03 17:15:30 +08:00
parent c458b273b1
commit 9b7d2a24cc
No known key found for this signature in database
GPG key ID: E109CC97553EF009
4 changed files with 48 additions and 86 deletions

View file

@ -510,10 +510,12 @@ int main(int argc, char **argv)
log_max_sev = log_parse_arg(getenv("LOG_LEVEL"));
}
gst_init(&argc, &argv);
loop = g_main_loop_new(NULL, FALSE);
if(!loop) {
r = -ENOMEM;
goto end;
goto deinit_gst;
}
r = sd_event_default(&event);
@ -581,7 +583,8 @@ unref_event:
sd_event_unref(event);
unref_loop:
g_main_loop_unref(loop);
end:
deinit_gst:
gst_deinit();
return r < 0 ? EXIT_FAILURE : EXIT_SUCCESS;
}