projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
41b23ca
)
initial volley of work for AudioPlaylistSource, the basic prototype for sources-that...
author
Paul Davis
<paul@linuxaudiosystems.com>
Fri, 13 May 2011 19:55:52 +0000
(19:55 +0000)
committer
Paul 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
patch
|
blob
|
history
diff --git
a/gtk2_ardour/editor_audio_import.cc
b/gtk2_ardour/editor_audio_import.cc
index 9b8064a138e5198a40d46c0718f70dea3e29818c..4a7c8c56543fea754525319aa1d12fb88f8dab91 100644
(file)
--- a/
gtk2_ardour/editor_audio_import.cc
+++ b/
gtk2_ardour/editor_audio_import.cc
@@
-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;