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:
parent
c458b273b1
commit
9b7d2a24cc
4 changed files with 48 additions and 86 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue