VirtualBox

Changeset 107683 in vbox


Ignore:
Timestamp:
Jan 10, 2025 4:23:24 PM (4 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
166776
Message:

src/VBox/Main/src-client/WebMWriter.cpp: Fixed warnings found by Parfait (unused assignment + unread variable). jiraref:VBP-1424

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/WebMWriter.cpp

    r107504 r107683  
    7171                       RecordingAudioCodec_T a_enmAudioCodec, RecordingVideoCodec_T a_enmVideoCodec)
    7272{
     73    int vrc;
     74
    7375    try
    7476    {
    7577        LogFunc(("Creating '%s'\n", a_pszFilename));
    7678
    77         int vrc = createEx(a_pszFilename, a_phFile);
     79        vrc = createEx(a_pszFilename, a_phFile);
    7880        if (RT_SUCCESS(vrc))
    7981        {
     
    8385        }
    8486    }
    85     catch(int vrc)
    86     {
    87         return vrc;
    88     }
    89     return VINF_SUCCESS;
     87    catch(int vrcEx)
     88    {
     89        vrc = vrcEx;
     90    }
     91
     92    return vrc;
    9093}
    9194
     
    102105                     RecordingAudioCodec_T a_enmAudioCodec, RecordingVideoCodec_T a_enmVideoCodec)
    103106{
     107    int vrc;
     108
    104109    try
    105110    {
    106111        LogFunc(("Creating '%s'\n", a_pszFilename));
    107112
    108         int vrc = create(a_pszFilename, a_fOpen);
     113        vrc = create(a_pszFilename, a_fOpen);
    109114        if (RT_SUCCESS(vrc))
    110115        {
     
    114119        }
    115120    }
    116     catch(int vrc)
    117     {
    118         return vrc;
    119     }
    120     return VINF_SUCCESS;
     121    catch(int vrcEx)
     122    {
     123        vrc = vrcEx;
     124    }
     125
     126    return vrc;
    121127}
    122128
     
    615621            && !mapBlocks.fClusterStarted)
    616622        {
    617             /* Last written timecode of the current cluster. */
    618             uint64_t tcAbsClusterLastWrittenMs;
    619 
    620623            if (Cluster.fOpen) /* Close current cluster first. */
    621624            {
     
    627630                Assert(Cluster.cBlocks);
    628631
    629                 /* Save the last written timecode of the current cluster before closing it. */
    630                 tcAbsClusterLastWrittenMs = Cluster.tcAbsLastWrittenMs;
    631 
    632632                subEnd(MkvElem_Cluster);
    633633                Cluster.fOpen = false;
    634634            }
    635             else /* First cluster ever? Use the segment's starting timecode. */
    636                 tcAbsClusterLastWrittenMs = m_CurSeg.m_tcAbsStartMs;
    637635
    638636            Cluster.fOpen              = true;
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette