add last backwards-compatible version
This commit is contained in:
@@ -441,8 +441,7 @@ public:
|
||||
//! \param p_data array that contains the data that will be associated with the property
|
||||
template<typename t_array> void playlist_set_property(t_size p_playlist,const GUID & p_property,const t_array & p_data) {
|
||||
PFC_STATIC_ASSERT( sizeof(p_data[0]) == 1 );
|
||||
stream_reader_memblock_ref reader(p_data);
|
||||
playlist_set_property(p_playlist,p_property,&reader,p_data.get_size(),fb2k::noAbort);
|
||||
playlist_set_property(p_playlist,p_property,&stream_reader_memblock_ref(p_data),p_data.get_size(),abort_callback_dummy());
|
||||
}
|
||||
//! Read a persistent playlist property.
|
||||
//! \param p_playlist Index of the playlist
|
||||
@@ -453,10 +452,7 @@ public:
|
||||
PFC_STATIC_ASSERT( sizeof(p_data[0]) == 1 );
|
||||
typedef pfc::array_t<t_uint8,pfc::alloc_fast_aggressive> t_temp;
|
||||
t_temp temp;
|
||||
{
|
||||
stream_writer_buffer_append_ref_t<t_temp> reader(temp);
|
||||
if (!playlist_get_property(p_playlist,p_property,&reader,fb2k::noAbort)) return false;
|
||||
}
|
||||
if (!playlist_get_property(p_playlist,p_property,&stream_writer_buffer_append_ref_t<t_temp>(temp),abort_callback_dummy())) return false;
|
||||
p_data = temp;
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user