Sophie

Sophie

distrib > Mageia > 5 > x86_64 > media > core-release > by-pkgid > 13f5dcef5358e9d5a2a5a1ae6baf28fc > files > 172

gtkdialog-0.8.3-1.mga5.x86_64.rpm

#!/bin/sh

## Includes.
. functmpGet
. functmpSet
. funcWidgetUnSchedule

## Stop the track.

funcStop() {
	if [ -z "$BASH" ]; then local FUNCNAME=funcStop; fi
	if [ $DEBUG_TRANSITS -ne 0 ]; then echo "$FUNCNAME: IN"; fi

	## Local variables.
	local playerstate=`functmpGet playerstate`
	local playerpid=`functmpGet playerpid`

	if [ $playerstate = paused -o $playerstate = playing ]; then
		if [ $playerstate = paused ]; then
			## Unpause the player.
			kill -s CONT $playerpid 2> /dev/null
		fi
		kill $playerpid 2> /dev/null
		functmpSet playerstate stopped
		functmpSet playpause 0
		funcWidgetUnSchedule muiAutoNextCheck autonextcheck
	fi

	if [ $DEBUG_TRANSITS -ne 0 ]; then echo "$FUNCNAME: OUT"; fi
}