initial volley of work for AudioPlaylistSource, the basic prototype for sources-that...
authorPaul Davis <paul@linuxaudiosystems.com>
Fri, 13 May 2011 19:55:52 +0000 (19:55 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Fri, 13 May 2011 19:55:52 +0000 (19:55 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@9508 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/editor_audio_import.cc

index 9b8064a138e5198a40d46c0718f70dea3e29818c..4a7c8c56543fea754525319aa1d12fb88f8dab91 100644 (file)
@@ -750,7 +750,13 @@ Editor::add_sources (vector<string> paths, SourceList& sources, framepos_t& pos,
                        just_one.clear ();
                        just_one.push_back (*x);
 
-                       region_name = region_name_from_path ((*x)->path(), false, false, sources.size(), n);
+                       boost::shared_ptr<FileSource> fs = boost::dynamic_pointer_cast<FileSource> (*x);
+
+                       if (fs) {
+                               region_name = region_name_from_path (fs->path(), false, false, sources.size(), n);
+                       } else{
+                               region_name = (*x)->name();
+                       }
 
                        PropertyList plist;