From d69845872dde39599d2222f2002a3ae254e7f8b4 Mon Sep 17 00:00:00 2001 From: sijanec Date: Thu, 7 Jan 2021 09:03:04 +0100 Subject: =?UTF-8?q?razhro=C5=A1=C4=8Devanje,=20iskali=20bomo=20zaporedje?= =?UTF-8?q?=20=C5=A1tevilk=20kosov?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rtv4d-dl.c | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) (limited to 'rtv4d-dl.c') diff --git a/rtv4d-dl.c b/rtv4d-dl.c index 976aec2..0dfe19c 100644 --- a/rtv4d-dl.c +++ b/rtv4d-dl.c @@ -614,7 +614,7 @@ int main (int argc, char ** argv) { char * e; /* char pointer for the memes */ FILE * fd; FILE * fd2; - unsigned int i; + unsigned int i = 0; time_t * casi = NULL; time_t cas; DIR * dir; @@ -883,6 +883,25 @@ int main (int argc, char ** argv) { z->seznam_predvajanja_url, z->kazalo_url, z->kos_format, z->api_url); fclose(fd2); break; + case 'r': /* skrivna funkcija za razhroščevanje/razvijanje */ + if (argc <= 2) { + strcpy(z->program, "slo1"); + } else { + strncpy(z->program, RTV_URL, RTV_ZIVO_PROGRAM_SIZEOF); + } + while (1) { + if (rtv_zivo_izpolni(z) != 0) { + RTV_NAPISI(NAPAKA, "Ni uspelo pridobiti metapodatkov pretoka."); + returnstatus = 4; + goto returncleanly; + } + if (i != z->prvi) { + i = z->prvi; + fprintf(stdout, "številka prvega kosa (z->prvi) je po novem %u\n", + i); + } + sleep(1); + } default: RTV_NAPISI(NAPAKA, "opcija (%c/%u) ne obstaja!", RTV_NACIN[0], RTV_NACIN[0]); -- cgit v1.2.3