Commit 0555e0df authored by zmoelnig's avatar zmoelnig
Browse files

remember name of successfully opened codec

git-svn-id: https://pd-gem.svn.sourceforge.net/svnroot/pd-gem/trunk/Gem@3594 49b2a0ca-c541-4d49-a7ef-d785e4371512
parent ce39fadd
......@@ -282,7 +282,6 @@ void pix_record :: render(GemState *state)
/////////////////////////////////////////////////////////
void pix_record :: enumPropertiesMess()
{
post("no property enumeration yet: %x", m_handle);
if(m_handle) {
gem::Properties props;
if(!m_handle->enumProperties(props))
......@@ -447,12 +446,10 @@ void pix_record :: codecMess(t_atom *argv)
for(i=0; i<handles.size(); i++) {
gem::record*handle=handles[i].handle;
std::string codec=handles[i].codec;
startpost("trying to set codec '%s' at handle %p: ", codec.c_str(), handle);
if(handle->setCodec(codec)) {
post("ok");
m_codec=codec;
m_handles.push_back(handle);
}
else post("ko");
}
if(m_handles.size()>0) {
m_handle=m_handles[0];
......
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