Commit afa17790 authored by Carola Nitz's avatar Carola Nitz

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

parent 3963f7dc
//
// 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];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment