mirror of
https://github.com/TeamNewPipe/NewPipe.git
synced 2024-11-22 19:12:45 +01:00
commit
0ced9ba799
@ -369,8 +369,8 @@ public class MainActivity extends AppCompatActivity {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void enhancePeertubeMenu(final StreamingService s, final MenuItem menuItem) {
|
private void enhancePeertubeMenu(final StreamingService s, final MenuItem menuItem) {
|
||||||
final PeertubeInstance currentInstace = PeertubeHelper.getCurrentInstance();
|
final PeertubeInstance currentInstance = PeertubeHelper.getCurrentInstance();
|
||||||
menuItem.setTitle(currentInstace.getName() + (ServiceHelper.isBeta(s) ? " (beta)" : ""));
|
menuItem.setTitle(currentInstance.getName() + (ServiceHelper.isBeta(s) ? " (beta)" : ""));
|
||||||
final Spinner spinner = (Spinner) LayoutInflater.from(this)
|
final Spinner spinner = (Spinner) LayoutInflater.from(this)
|
||||||
.inflate(R.layout.instance_spinner_layout, null);
|
.inflate(R.layout.instance_spinner_layout, null);
|
||||||
final List<PeertubeInstance> instances = PeertubeHelper.getInstanceList(this);
|
final List<PeertubeInstance> instances = PeertubeHelper.getInstanceList(this);
|
||||||
@ -378,7 +378,7 @@ public class MainActivity extends AppCompatActivity {
|
|||||||
int defaultSelect = 0;
|
int defaultSelect = 0;
|
||||||
for (final PeertubeInstance instance : instances) {
|
for (final PeertubeInstance instance : instances) {
|
||||||
items.add(instance.getName());
|
items.add(instance.getName());
|
||||||
if (instance.getUrl().equals(currentInstace.getUrl())) {
|
if (instance.getUrl().equals(currentInstance.getUrl())) {
|
||||||
defaultSelect = items.size() - 1;
|
defaultSelect = items.size() - 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -483,7 +483,7 @@ public class Mp4FromDashWriter {
|
|||||||
|
|
||||||
// stsc_table_entry = [first_chunk, samples_per_chunk, sample_description_index]
|
// stsc_table_entry = [first_chunk, samples_per_chunk, sample_description_index]
|
||||||
tables.stscBEntries = new int[tables.stsc * 3];
|
tables.stscBEntries = new int[tables.stsc * 3];
|
||||||
tables.stco = remainChunkOffset + 1; // total entrys in chunk offset box
|
tables.stco = remainChunkOffset + 1; // total entries in chunk offset box
|
||||||
|
|
||||||
tables.stscBEntries[index++] = 1;
|
tables.stscBEntries[index++] = 1;
|
||||||
tables.stscBEntries[index++] = firstCount;
|
tables.stscBEntries[index++] = firstCount;
|
||||||
|
Loading…
Reference in New Issue
Block a user