centricular / gstcefsrc

A simple gstreamer wrapper around Chromium Embedded Framework
84 stars 45 forks source link

Invalid readme build commands after latest PR #32

Closed reinismu closed 2 years ago

reinismu commented 2 years ago

After #31 developers following readme won't be able to run examples

Setting pipeline to PAUSED ...
[0917/180736.657175:ERROR:context.cc(108)] The browser_subprocess_path directory (Release/gstcefsubprocess) is not an absolute path. Defaulting to empty.
[0917/180736.657298:ERROR:context.cc(108)] The locales_dir_path directory (Release/locales) is not an absolute path. Defaulting to empty.
Error initializing: Unknown option --type=zygote
Error initializing: Unknown option --type=zygote
Error initializing: Unknown option --type=utility
Pipeline is live and does not need PREROLL ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
[0917/180736.694625:FATAL:gpu_data_manager_impl_private.cc(407)] GPU process isn't usable. Goodbye.
Error initializing: Unknown option --type=utility
[1]    299009 trace trap (core dumped)  GST_PLUGIN_PATH=Release:$GST_PLUGIN_PATH gst-launch-1.0 cefsrc  ! video/x-raw
MathieuDuponchelle commented 2 years ago

Hrm, I did test with export GST_PLUGIN_PATH=$PWD/Release:$GST_PLUGIN_PATH :facepalm: . I think we can make a better fix though: when the path returned by g_plugin_get_filename is not an absolute one, we can prepend the current working directory to get to the correct location, that is in effect what the gstreamer registry does by using g_dir_open on the path. Can you come up with that patch instead? :)

reinismu commented 2 years ago

Ye should do the fix as you said. I will try