Skip to content

Commit 1199c77

Browse files
committed
fix all restream issues
1 parent 72eebc1 commit 1199c77

File tree

5 files changed

+15
-7
lines changed

5 files changed

+15
-7
lines changed

flatpak/dev.fredol.open-tv.metainfo.xml

+7
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,13 @@
4343
</p>
4444
</description>
4545
</release>
46+
<release version="1.3.1" date="2025-01-09">
47+
<description>
48+
<p>
49+
Please see the official changelog at github.com/fredolx/open-tv/releases
50+
</p>
51+
</description>
52+
</release>
4653
<release version="1.3.0" date="2025-01-09">
4754
<description>
4855
<p>

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src-tauri/Cargo.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src-tauri/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "open_tv"
3-
version = "1.3.1"
3+
version = "1.4.1"
44
description = "Fast And Powerful IPTV App"
55
authors = ["Frédéric Lachapelle"]
66
license = ""

src-tauri/src/restream.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
use std::{
2-
os::windows::process::CommandExt,
32
path::{Path, PathBuf},
43
process::{Child, Command, Stdio},
54
time::Duration,
65
};
76

7+
#[cfg(target_os = "windows")]
8+
use std::os::windows::process::CommandExt;
9+
810
use anyhow::{Context, Result};
911
use tauri::{AppHandle, Emitter, State};
1012
use tokio::{
@@ -25,6 +27,7 @@ use crate::{
2527

2628
const WAN_IP_API: &str = "https://api.ipify.org";
2729
const FFMPEG_BIN_NAME: &str = "ffmpeg";
30+
#[cfg(target_os = "windows")]
2831
const CREATE_NO_WINDOW: u32 = 0x08000000;
2932

3033
fn start_ffmpeg_listening(channel: Channel, restream_dir: PathBuf) -> Result<Child> {
@@ -74,8 +77,6 @@ fn start_ffmpeg_listening(channel: Channel, restream_dir: PathBuf) -> Result<Chi
7477
.arg("1")
7578
.arg("-reconnect_on_network_error")
7679
.arg("1")
77-
.arg("-reconnect_max_retries")
78-
.arg("3")
7980
.arg(playlist_dir)
8081
.stdout(Stdio::null())
8182
.stderr(Stdio::null())

0 commit comments

Comments
 (0)