Properly reset the codec id to invalid -1 on error
Properly reset the codec id to invalid -1 on error

ahmedammar/skype_farsight2,kakaroto/farstream,pexip/farstream,pexip/farstream,ahmedammar/skype_farsight2,pexip/farstream,shadeslayer/farstream,tieto/farstream,tieto/farstream,kakaroto/farstream,shadeslayer/farstream,tieto/farstream,ahmedammar/skype_farsight2,shadeslayer/farstream,tieto/farstream,ahmedammar/skype_farsight2,kakaroto/farstream,shadeslayer/farstream,pexip/farstream,tieto/farstream,kakaroto/farstream