Ignore:
Timestamp:
May 3, 2016, 5:25:45 PM (10 years ago)
Author:
Silvan Scherrer
Message:

smplayer: update trunk to version 16.4

Location:
smplayer/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • smplayer/trunk

  • smplayer/trunk/src/filepropertiesdialog.cpp

    r165 r176  
    11/*  smplayer, GUI front-end for mplayer.
    2     Copyright (C) 2006-2014 Ricardo Villalba <[email protected]>
     2    Copyright (C) 2006-201 Ricardo Villalba <[email protected]>
    33
    44    This program is free software; you can redistribute it and/or modify
     
    2424#include "images.h"
    2525#include "infofile.h"
    26 
     26#include "playerid.h"
    2727
    2828FilePropertiesDialog::FilePropertiesDialog( QWidget* parent, Qt::WindowFlags f )
     
    3737        connect( applyButton, SIGNAL(clicked()), this, SLOT(apply()) );
    3838
     39
    3940        codecs_set = false;
    40 
    41         // Read codec info from InfoReader:
    42         InfoReader *i = InfoReader::obj();
    43         setCodecs( i->vcList(), i->acList(), i->demuxerList() );
     41#else
     42        // Hide unused tabs
     43        int i = tabWidget->indexOf(demuxer_page);
     44        if (i != -1) tabWidget->removeTab(i);
     45        i = tabWidget->indexOf(vc_page);
     46        if (i != -1) tabWidget->removeTab(i);
     47        i = tabWidget->indexOf(ac_page);
     48        if (i != -1) tabWidget->removeTab(i);
     49#endif
    4450
    4551        retranslateStrings();
     
    7379#endif
    7480
     81
     82
     83
     84
     85
     86
     87
     88
     89
    7590}
    7691
     
    90105}
    91106
     107
    92108void FilePropertiesDialog::setCodecs(InfoList vc, InfoList ac, InfoList demuxer)
    93109{
     
    96112        demuxerlist = demuxer;
    97113
     114
     115
     116
     117
     118
     119
     120
     121
    98122        InfoList::iterator it;
    99123
     
    110134        }
    111135
    112         codecs_set = true;     
     136        codecs_set = true;
    113137}
    114138
     
    189213        return -1;
    190214}
     215
    191216
    192217void FilePropertiesDialog::setMplayerAdditionalArguments(QString args) {
Note: See TracChangeset for help on using the changeset viewer.