You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
Fix check if GPU can be used for encoding and decoding
This commit is contained in:
@@ -415,7 +415,7 @@ void FFmpegReader::Open()
|
||||
}
|
||||
// Check if it is there and writable
|
||||
#if defined(__linux__)
|
||||
if( adapter_ptr != NULL && access( adapter_ptr, W_OK ) == -1 ) {
|
||||
if( adapter_ptr != NULL && access( adapter_ptr, W_OK ) == 0 ) {
|
||||
#elif defined(_WIN32)
|
||||
if( adapter_ptr != NULL ) {
|
||||
#elif defined(__APPLE__)
|
||||
|
||||
@@ -1316,7 +1316,7 @@ void FFmpegWriter::open_video(AVFormatContext *oc, AVStream *st)
|
||||
}
|
||||
// Check if it is there and writable
|
||||
#if defined(__linux__)
|
||||
if( adapter_ptr != NULL && access( adapter_ptr, W_OK ) == -1 ) {
|
||||
if( adapter_ptr != NULL && access( adapter_ptr, W_OK ) == 0 ) {
|
||||
#elif defined(_WIN32)
|
||||
if( adapter_ptr != NULL ) {
|
||||
#elif defined(__APPLE__)
|
||||
|
||||
Reference in New Issue
Block a user