summaryrefslogtreecommitdiffstats
path: root/rtv4d-dl.c
diff options
context:
space:
mode:
Diffstat (limited to 'rtv4d-dl.c')
-rw-r--r--rtv4d-dl.c21
1 files changed, 20 insertions, 1 deletions
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]);