mirror of
https://github.com/game-stop/veejay.git
synced 2025-12-15 12:20:03 +01:00
fix issue #109
This commit is contained in:
@@ -1918,9 +1918,9 @@ int vj_tag_v4l_set_control( int t1, uint32_t id, int value )
|
||||
return 0;
|
||||
if(tag->source_type != VJ_TAG_TYPE_V4L )
|
||||
return 0;
|
||||
|
||||
#ifdef HAVE_V4L2
|
||||
v4l2_set_control( vj_tag_input->unicap[tag->index], id, value );
|
||||
|
||||
#endif
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
@@ -209,6 +209,7 @@ static void vj_vloopback_setup_ptrs( uint8_t *buf, uint8_t *planes[4], int pixfm
|
||||
|
||||
static int vj_vloopback_user_pixelformat( VJFrame *src )
|
||||
{
|
||||
#ifdef HAVE_V4L2
|
||||
char *str = getenv( "VEEJAY_VLOOPBACK_PIXELFORMAT" );
|
||||
if( str != NULL ) {
|
||||
int i;
|
||||
@@ -227,10 +228,15 @@ static int vj_vloopback_user_pixelformat( VJFrame *src )
|
||||
}
|
||||
|
||||
return v4l2_ffmpeg2v4l2( src->format );
|
||||
#else
|
||||
return src->format;
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
void *vj_vloopback_open(const char *device_name, VJFrame *src, int dst_w, int dst_h, int dst_format )
|
||||
{
|
||||
#ifdef HAVE_V4L2
|
||||
int dst_v4l2_format = v4l2_ffmpeg2v4l2( dst_format );
|
||||
int dst_v4l2_w = dst_w;
|
||||
int dst_v4l2_h = dst_h;
|
||||
@@ -345,6 +351,9 @@ void *vj_vloopback_open(const char *device_name, VJFrame *src, int dst_w, int ds
|
||||
}
|
||||
|
||||
return (void*) v;
|
||||
#else
|
||||
return NULL;
|
||||
#endif
|
||||
}
|
||||
|
||||
int vj_vloopback_write( void *vloop )
|
||||
|
||||
Reference in New Issue
Block a user