You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
add some stubs to make NewPipe video player work again
This commit is contained in:
@@ -42,6 +42,9 @@ JNIEXPORT jlong JNICALL Java_android_graphics_Bitmap_native_1bitmap_1from_1path(
|
||||
JNIEXPORT jint JNICALL Java_android_graphics_Bitmap_getWidth(JNIEnv *env, jobject this)
|
||||
{
|
||||
GdkPixbuf *pixbuf = _PTR(_GET_LONG_FIELD(this, "pixbuf"));
|
||||
if (!pixbuf) {
|
||||
return 10;
|
||||
}
|
||||
|
||||
return gdk_pixbuf_get_width(pixbuf);
|
||||
}
|
||||
@@ -49,6 +52,9 @@ JNIEXPORT jint JNICALL Java_android_graphics_Bitmap_getWidth(JNIEnv *env, jobjec
|
||||
JNIEXPORT jint JNICALL Java_android_graphics_Bitmap_getHeight(JNIEnv *env, jobject this)
|
||||
{
|
||||
GdkPixbuf *pixbuf = _PTR(_GET_LONG_FIELD(this, "pixbuf"));
|
||||
if (!pixbuf) {
|
||||
return 10;
|
||||
}
|
||||
|
||||
return gdk_pixbuf_get_height(pixbuf);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user