Ticket #8130: mythvideo.patch
File mythvideo.patch, 1.4 KB (added by , 14 years ago) |
---|
-
./mythvideo/mythvideo/videodlg.cpp
old new 3630 3630 */ 3631 3631 void VideoDialog::playFolder() 3632 3632 { 3633 const int WATCHED_WATERMARK = 10000; // Play less then this milisec and the chain of 3634 // videos will not be followed when 3635 // playing. 3636 QTime playing_time; 3637 3633 3638 MythUIButtonListItem *item = GetItemCurrent(); 3634 3639 MythGenericTree *node = GetNodePtrFromButton(item); 3635 3640 int list_count; … … 3641 3646 3642 3647 if (list_count > 0) 3643 3648 { 3644 for (int i = 0; i < list_count; i++) 3645 { 3649 bool video_started; 3650 int i = 0; 3651 do { 3652 video_started = false; 3646 3653 MythGenericTree *subnode = node->getChildAt(i); 3647 3654 if (subnode) 3648 3655 { 3649 3656 Metadata *metadata = GetMetadataPtrFromNode(subnode); 3650 3657 if (metadata) 3651 3658 { 3659 playing_time.start(); 3660 video_started = true; 3652 3661 PlayVideo(metadata->GetFilename(), 3653 3662 m_d->m_videoList->getListCache()); 3654 3663 } 3655 3664 } 3656 } 3665 i++; 3666 } while (i < list_count && (!video_started || playing_time.elapsed() > WATCHED_WATERMARK)); 3657 3667 } 3658 3668 } 3659 3669