mirror of
https://github.com/game-stop/veejay.git
synced 2025-12-19 22:30:06 +01:00
fix bug on close file, fix bug in reconnect (ui)
git-svn-id: svn://code.dyne.org/veejay/trunk@759 eb8d1916-c9e9-0310-b8de-cf0c9472ead5
This commit is contained in:
@@ -6862,6 +6862,7 @@ gboolean is_alive( void )
|
||||
if(gui->watch.state == STATE_DISCONNECT )
|
||||
{
|
||||
gui->watch.state = STATE_STOPPED;
|
||||
gui->status_lock = 1;
|
||||
vj_gui_disconnect();
|
||||
return TRUE;
|
||||
}
|
||||
@@ -6910,11 +6911,11 @@ gboolean is_alive( void )
|
||||
|
||||
void vj_gui_disconnect()
|
||||
{
|
||||
// g_source_remove( info->logging );
|
||||
// g_source_remove( info->cpumeter );
|
||||
// g_source_remove( info->cachemeter );
|
||||
if( info->channel )
|
||||
{
|
||||
g_io_channel_shutdown( info->channel, FALSE, NULL );
|
||||
g_io_channel_unref(info->channel);
|
||||
}
|
||||
gtk_key_snooper_remove( info->key_id );
|
||||
free_samplebank();
|
||||
|
||||
|
||||
@@ -1076,7 +1076,7 @@ int lav_read_frame(lav_file_t *lav_file, uint8_t *vidbuf)
|
||||
if(!kf)
|
||||
{
|
||||
veejay_msg(0, "Requested frame is not a keyframe");
|
||||
return 0;
|
||||
return -1;
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
||||
@@ -481,10 +481,6 @@ static int _el_probe_for_pixel_fmt( lav_file_t *fd )
|
||||
case FMT_422F:
|
||||
veejay_msg(VEEJAY_MSG_DEBUG,"\tPixel format: YUV Planar 4:2:2 [JPEG full range]");
|
||||
break;
|
||||
default:
|
||||
veejay_msg(VEEJAY_MSG_DEBUG,"\tPixel format: %x (unknown)", new );
|
||||
break;
|
||||
|
||||
}
|
||||
|
||||
return new;
|
||||
@@ -578,19 +574,13 @@ int open_video_file(char *filename, editlist * el, int preserve_pathname, int de
|
||||
chroma = el->MJPG_chroma;
|
||||
|
||||
n = el->num_video_files;
|
||||
|
||||
//el->num_video_files++;
|
||||
//el->lav_fd[n] = elfd;
|
||||
|
||||
lav_file_t *elfd = lav_open_input_file(filename,mmap_size );
|
||||
|
||||
|
||||
if (elfd == NULL)
|
||||
{
|
||||
veejay_msg(VEEJAY_MSG_ERROR,"Error loading videofile '%s'", realname);
|
||||
veejay_msg(VEEJAY_MSG_ERROR,"%s",lav_strerror());
|
||||
if(realname) free(realname);
|
||||
lav_close(elfd);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user