Imported Upstream version 0.14.2+dfsg1
This commit is contained in:
parent
fb3990e9e5
commit
41a01dbf05
529 changed files with 25112 additions and 2336 deletions
|
|
@ -1,3 +1,4 @@
|
|||
ImageInput="الصورة"
|
||||
File="ملف الصورة"
|
||||
UnloadWhenNotShowing="إلغاء تحميل الصورة إذا لم تظهر"
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
ImageInput="Irudia"
|
||||
File="Irudi Agiria"
|
||||
UnloadWhenNotShowing="Desgertatu irudia erakusten ez denean"
|
||||
File="Irudi-fitxategia"
|
||||
UnloadWhenNotShowing="Ez kargatu irudia erakusten ez denean"
|
||||
|
||||
|
|
|
|||
4
plugins/image-source/data/locale/he-IL.ini
Normal file
4
plugins/image-source/data/locale/he-IL.ini
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
ImageInput="תמונה"
|
||||
File="קובץ תמונה"
|
||||
UnloadWhenNotShowing="הסר טעינת תמונה כאשר לא נראה"
|
||||
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
ImageInput="Imagem"
|
||||
File="Ficheiro de Imagem"
|
||||
File="Ficheiro de imagem"
|
||||
UnloadWhenNotShowing="Descarregar imagem quando não estiver em visualização"
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
ImageInput="Imagine"
|
||||
File="Fișier Imagine"
|
||||
UnloadWhenNotShowing="Descarca imaginea din memorie cand nu este utilizata"
|
||||
File="Fișier imagine"
|
||||
UnloadWhenNotShowing="Eliberează din memorie imaginea când nu este afișată"
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
ImageInput="Bild"
|
||||
File="Bildfil"
|
||||
UnloadWhenNotShowing="Ta bort bild från VRAM när den inte visas"
|
||||
UnloadWhenNotShowing="Ta bort bild när den inte visas"
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
#include <obs-module.h>
|
||||
#include <graphics/image-file.h>
|
||||
#include <util/platform.h>
|
||||
#include <util/dstr.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
#define blog(log_level, format, ...) \
|
||||
|
|
@ -30,7 +31,8 @@ struct image_source {
|
|||
static time_t get_modified_timestamp(const char *filename)
|
||||
{
|
||||
struct stat stats;
|
||||
stat(filename, &stats);
|
||||
if (os_stat(filename, &stats) != 0)
|
||||
return -1;
|
||||
return stats.st_mtime;
|
||||
}
|
||||
|
||||
|
|
@ -196,17 +198,29 @@ static const char *image_filter =
|
|||
"JPEG Files (*.jpeg *.jpg);;"
|
||||
"GIF Files (*.gif)";
|
||||
|
||||
static obs_properties_t *image_source_properties(void *unused)
|
||||
static obs_properties_t *image_source_properties(void *data)
|
||||
{
|
||||
UNUSED_PARAMETER(unused);
|
||||
struct image_source *s = data;
|
||||
struct dstr path = {0};
|
||||
|
||||
obs_properties_t *props = obs_properties_create();
|
||||
|
||||
if (s && s->file && *s->file) {
|
||||
const char *slash;
|
||||
|
||||
dstr_copy(&path, s->file);
|
||||
dstr_replace(&path, "\\", "/");
|
||||
slash = strrchr(path.array, '/');
|
||||
if (slash)
|
||||
dstr_resize(&path, slash - path.array + 1);
|
||||
}
|
||||
|
||||
obs_properties_add_path(props,
|
||||
"file", obs_module_text("File"),
|
||||
OBS_PATH_FILE, image_filter, NULL);
|
||||
OBS_PATH_FILE, image_filter, path.array);
|
||||
obs_properties_add_bool(props,
|
||||
"unload", obs_module_text("UnloadWhenNotShowing"));
|
||||
dstr_free(&path);
|
||||
|
||||
return props;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue