Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 150217 | Differences between
and this patch

Collapse All | Expand All

(-)vdrrip-0.3.0/scripts/queuehandler.sh (+12 lines)
Lines 305-310 Link Here
305
  
305
  
306
  # start the preview in the middle of the movie
306
  # start the preview in the middle of the movie
307
  local length=`"$mp" -identify -frames 0 "$dir/001.vdr" 2>/dev/null | grep ID_LENGTH | cut -d"=" -f2`
307
  local length=`"$mp" -identify -frames 0 "$dir/001.vdr" 2>/dev/null | grep ID_LENGTH | cut -d"=" -f2`
308
  # repeat command if failed first time
309
  if [ -z "$length" ]
310
  then
311
    length=`"$mp" -identify -frames 0 "$dir/001.vdr" 2>/dev/null | \
312
            grep ID_LENGTH | cut -d"=" -f2`
313
  fi
308
  let local ss=length/2
314
  let local ss=length/2
309
  previewval="-ss $ss -endpos $previewlength"
315
  previewval="-ss $ss -endpos $previewlength"
310
}
316
}
Lines 790-795 Link Here
790
        # detect length of splitted file and add it to $splitpos
796
        # detect length of splitted file and add it to $splitpos
791
        local length=`$mplayer -identify -frames 0 $tempdir/$ofile 2>/dev/null | \
797
        local length=`$mplayer -identify -frames 0 $tempdir/$ofile 2>/dev/null | \
792
                      grep ID_LENGTH | cut -d= -f2`
798
                      grep ID_LENGTH | cut -d= -f2`
799
        # repeat command if failed first time
800
        if [ -z "$length" ]
801
        then
802
            length=`$mplayer -identify -frames 0 $tempdir/$ofile 2>/dev/null | \
803
                    grep ID_LENGTH | cut -d= -f2`
804
        fi
793
        let splitpos=splitpos+length-overlap
805
        let splitpos=splitpos+length-overlap
794
        let count=count+1
806
        let count=count+1
795
      done
807
      done

Return to bug 150217