浏览代码

VLCLibraryViewController: fix the media selection does not play video

Pierre SAGASPE 7 年之前
父节点
当前提交
8dd30ef0f5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Sources/VLCLibraryViewController.m

+ 1 - 1
Sources/VLCLibraryViewController.m

@@ -580,7 +580,7 @@ static NSString *kUsingTableViewToShowData = @"UsingTableViewToShowData";
     }
 
     [tableView deselectRowAtIndexPath:indexPath animated:YES];
-    NSManagedObject *selectedObject;
+    NSManagedObject *selectedObject = [_mediaDataSource objectAtIndex:indexPath.row];
 
     if (selectedObject != nil)
         [self openMediaObject:selectedObject];