瀏覽代碼

VLCMediaDatasource: use the correct header and fix crash for untitled episodes

Carola Nitz 7 年之前
父節點
當前提交
afa177907d
共有 1 個文件被更改,包括 12 次插入8 次删除
  1. 12 8
      Sources/VLCMediaDataSource.m

+ 12 - 8
Sources/VLCMediaDataSource.m

@@ -1,10 +1,14 @@
-//
-//  VLCMediaDatasource.m
-//  VLC
-//
-//  Created by Carola Nitz on 8/15/17.
-//  Copyright © 2017 VideoLAN. All rights reserved.
-//
+/*****************************************************************************
+ * VLCMediaDataSource.m
+ * VLC for iOS
+ *****************************************************************************
+ * Copyright (c) 2017 VideoLAN. All rights reserved.
+ * $Id$
+ *
+ * Authors:Carola Nitz <caro # videolan.org>
+ *
+ * Refer to the COPYING file of the official project for license.
+ *****************************************************************************/
 
 #import "VLCMediaDataSource.h"
 #import "VLCPlaybackController.h"
@@ -166,7 +170,7 @@
              * syndrome (see #10435, #10464, #10432 et al) */
             if (file.showEpisode.show.name.length == 0) {
                 file.showEpisode.show.name = NSLocalizedString(@"UNTITLED_SHOW", nil);
-                [self performSelector:@selector(updateViewContents) withObject:nil afterDelay:0.1];
+                [self updateContentsForSelection:_currentSelection];
             }
         } else if (file.isAlbumTrack && file.albumTrack.album.tracks.count < 2) {
             [self addObject:file];