Transcoding worked on 0.11 not on 0.12.1

Help
2010-11-23
2013-05-30
  • Jonathan Wang

    Jonathan Wang - 2011-11-09

    Hi Gerhard -

    The attached patch will fix your problem.

    -- cds_resource_manager.cc~    2010-03-25 09:58:11.000000000 -0500
    +++ cds_resource_manager.cc     2011-11-09 08:30:24.000000000 -0600
    @@ -232,15 +232,11 @@
                         if (string_ok(frequency))
                         {
                             t_res->addAttribute(MetadataHandler::getResAttrName(R_SAMPLEFREQUENCY), frequency);
    -                        targetMimeType = targetMimeType + _(";rate=") +
    -                                         frequency;
                         }
                     }
                     else if (freq != OFF)
                     {
                         t_res->addAttribute(MetadataHandler::getResAttrName(R_SAMPLEFREQUENCY), String::from(freq));
    -                    targetMimeType = targetMimeType + _(";rate=") +
    -                                     String::from(freq);
                     }

                     int chan = tp->getNumChannels();
    @@ -250,15 +246,11 @@
                         if (string_ok(nchannels))
                         {
                             t_res->addAttribute(MetadataHandler::getResAttrName(R_NRAUDIOCHANNELS), nchannels);
    -                        targetMimeType = targetMimeType + _(";channels=") +
    -                                         nchannels;
                         }
                     }
                     else if (chan != OFF)
                     {
                         t_res->addAttribute(MetadataHandler::getResAttrName(R_NRAUDIOCHANNELS), String::from(chan));
    -                    targetMimeType = targetMimeType + _(";channels=") +
    -                                     String::from(chan);
                     }
                 }

     
  • Gerhard Kalab

    Gerhard Kalab - 2011-11-13

    Yes - this works.

    Thanks a lot!

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks